protected boolean parseColumnNameList ( DdlTokenStream tokens , AstNode parentNode , String referenceType ) { boolean parsedColumns = false ; // CONSUME COLUMNS List < String > columnNameList = new ArrayList < String > ( ) ; if ( tokens . matches ( L_PAREN ) ) { tokens . consume ( L_PAREN ) ; columnNameList = parseNameList ( tokens ) ; if ( ! columnNameList . isEmpty ( ) ) { parsedColumns = true ; } tokens . consume ( R_PAREN ) ; } for ( String columnName : columnNameList ) { nodeFactory ( ) . node ( columnName , parentNode , referenceType ) ; } return parsedColumns ; }
Adds column reference nodes to a parent node . Returns true if column references added false if not .