private List < String > getLabels ( GDLParser . HeaderContext header ) { if ( header != null && header . label ( ) != null ) { return header . label ( ) . stream ( ) . map ( RuleContext :: getText ) . map ( x -> x . substring ( 1 ) ) . collect ( Collectors . toList ( ) ) ; } return null ; }
Returns the element labels from a given header context .