test_class.declarator: nodeTypes = new NodeStateNodeTypeInfoProvider(INITIAL_CONTENT)
test_class.modifier: private static final
test_class.original_string: private static final NodeTypeInfoProvider nodeTypes = new NodeStateNodeTypeInfoProvider(INITIAL_CONTENT);
test_class.type: NodeTypeInfoProvider
test_class.var_name: nodeTypes
test_class.declarator: p = createTestSQL2Parser()
test_class.modifier: private static final
test_class.original_string: private static final SQL2Parser p = createTestSQL2Parser();
test_class.type: SQL2Parser
test_class.var_name: p
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/query/SQL2ParserTest.java
test_class.identifier: SQL2ParserTest
test_case.body: @Test(expected = ParseException.class)
      public void coalesceFailsWithNoParam() throws ParseException {
          p.parse("SELECT * FROM [nt:base] WHERE COALESCE()='a'");
      }
test_case.class_method_signature: SQL2ParserTest.coalesceFailsWithNoParam()
test_case.full_signature: @Test(expected = ParseException.class) public void coalesceFailsWithNoParam()
test_case.identifier: coalesceFailsWithNoParam
test_case.invocations: parse
test_case.modifiers: @Test(expected = ParseException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void coalesceFailsWithNoParam()
focal_class.declarator: LOG = LoggerFactory.getLogger(SQL2Parser.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(SQL2Parser.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: CHAR_END = -1
focal_class.modifier: private static final
focal_class.original_string: private static final int CHAR_END = -1, CHAR_IGNORE = 0;
focal_class.type: int
focal_class.var_name: CHAR_END
focal_class.declarator: CHAR_VALUE = 2
focal_class.modifier: private static final
focal_class.original_string: private static final int CHAR_VALUE = 2, CHAR_QUOTED = 3;
focal_class.type: int
focal_class.var_name: CHAR_VALUE
focal_class.declarator: CHAR_NAME = 4
focal_class.modifier: private static final
focal_class.original_string: private static final int CHAR_NAME = 4, CHAR_SPECIAL_1 = 5, CHAR_SPECIAL_2 = 6;
focal_class.type: int
focal_class.var_name: CHAR_NAME
focal_class.declarator: CHAR_STRING = 7
focal_class.modifier: private static final
focal_class.original_string: private static final int CHAR_STRING = 7, CHAR_DECIMAL = 8, CHAR_BRACKETED = 9;
focal_class.type: int
focal_class.var_name: CHAR_STRING
focal_class.declarator: KEYWORD = 1
focal_class.modifier: private static final
focal_class.original_string: private static final int KEYWORD = 1, IDENTIFIER = 2, PARAMETER = 3, END = 4, VALUE = 5;
focal_class.type: int
focal_class.var_name: KEYWORD
focal_class.declarator: MINUS = 12
focal_class.modifier: private static final
focal_class.original_string: private static final int MINUS = 12, PLUS = 13, OPEN = 14, CLOSE = 15;
focal_class.type: int
focal_class.var_name: MINUS
focal_class.declarator: nodeTypes
focal_class.modifier: private final
focal_class.original_string: private final NodeTypeInfoProvider nodeTypes;
focal_class.type: NodeTypeInfoProvider
focal_class.var_name: nodeTypes
focal_class.declarator: statement
focal_class.modifier: private
focal_class.original_string: private String statement;
focal_class.type: String
focal_class.var_name: statement
focal_class.declarator: statementChars
focal_class.modifier: private
focal_class.original_string: private char[] statementChars;
focal_class.type: char[]
focal_class.var_name: statementChars
focal_class.declarator: characterTypes
focal_class.modifier: private
focal_class.original_string: private int[] characterTypes;
focal_class.type: int[]
focal_class.var_name: characterTypes
focal_class.declarator: parseIndex
focal_class.modifier: private
focal_class.original_string: private int parseIndex;
focal_class.type: int
focal_class.var_name: parseIndex
focal_class.declarator: currentTokenType
focal_class.modifier: private
focal_class.original_string: private int currentTokenType;
focal_class.type: int
focal_class.var_name: currentTokenType
focal_class.declarator: currentToken
focal_class.modifier: private
focal_class.original_string: private String currentToken;
focal_class.type: String
focal_class.var_name: currentToken
focal_class.declarator: currentTokenQuoted
focal_class.modifier: private
focal_class.original_string: private boolean currentTokenQuoted;
focal_class.type: boolean
focal_class.var_name: currentTokenQuoted
focal_class.declarator: currentValue
focal_class.modifier: private
focal_class.original_string: private PropertyValue currentValue;
focal_class.type: PropertyValue
focal_class.var_name: currentValue
focal_class.declarator: expected
focal_class.modifier: private
focal_class.original_string: private ArrayList<String> expected;
focal_class.type: ArrayList<String>
focal_class.var_name: expected
focal_class.declarator: bindVariables
focal_class.modifier: private
focal_class.original_string: private HashMap<String, BindVariableValueImpl> bindVariables;
focal_class.type: HashMap<String, BindVariableValueImpl>
focal_class.var_name: bindVariables
focal_class.declarator: selectors = newHashMap()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, SelectorImpl> selectors = newHashMap();
focal_class.type: Map<String, SelectorImpl>
focal_class.var_name: selectors
focal_class.declarator: allowTextLiterals = true
focal_class.modifier: private
focal_class.original_string: private boolean allowTextLiterals = true;
focal_class.type: boolean
focal_class.var_name: allowTextLiterals
focal_class.declarator: allowNumberLiterals = true
focal_class.modifier: private
focal_class.original_string: private boolean allowNumberLiterals = true;
focal_class.type: boolean
focal_class.var_name: allowNumberLiterals
focal_class.declarator: includeSelectorNameInWildcardColumns = true
focal_class.modifier: private
focal_class.original_string: private boolean includeSelectorNameInWildcardColumns = true;
focal_class.type: boolean
focal_class.var_name: includeSelectorNameInWildcardColumns
focal_class.declarator: factory = new AstElementFactory()
focal_class.modifier: private final
focal_class.original_string: private final AstElementFactory factory = new AstElementFactory();
focal_class.type: AstElementFactory
focal_class.var_name: factory
focal_class.declarator: supportSQL1
focal_class.modifier: private
focal_class.original_string: private boolean supportSQL1;
focal_class.type: boolean
focal_class.var_name: supportSQL1
focal_class.declarator: namePathMapper
focal_class.modifier: private
focal_class.original_string: private NamePathMapper namePathMapper;
focal_class.type: NamePathMapper
focal_class.var_name: namePathMapper
focal_class.declarator: settings
focal_class.modifier: private final
focal_class.original_string: private final QueryEngineSettings settings;
focal_class.type: QueryEngineSettings
focal_class.var_name: settings
focal_class.declarator: literalUsageLogged
focal_class.modifier: private
focal_class.original_string: private boolean literalUsageLogged;
focal_class.type: boolean
focal_class.var_name: literalUsageLogged
focal_class.declarator: stats
focal_class.modifier: private final
focal_class.original_string: private final QueryExecutionStats stats;
focal_class.type: QueryExecutionStats
focal_class.var_name: stats
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/query/SQL2Parser.java
focal_class.identifier: SQL2Parser
focal_class.class_method_signature: SQL2Parser.SQL2Parser(NamePathMapper namePathMapper, NodeTypeInfoProvider nodeTypes, QueryEngineSettings settings,
              QueryExecutionStats stats)
focal_class.full_signature: public  SQL2Parser(NamePathMapper namePathMapper, NodeTypeInfoProvider nodeTypes, QueryEngineSettings settings,
              QueryExecutionStats stats)
focal_class.identifier: SQL2Parser
focal_class.modifiers: public
focal_class.parameters: (NamePathMapper namePathMapper, NodeTypeInfoProvider nodeTypes, QueryEngineSettings settings,
              QueryExecutionStats stats)
focal_class.signature:  SQL2Parser(NamePathMapper namePathMapper, NodeTypeInfoProvider nodeTypes, QueryEngineSettings settings,
              QueryExecutionStats stats)
focal_class.class_method_signature: SQL2Parser.parse(final String query, final boolean initialise)
focal_class.full_signature: public Query parse(final String query, final boolean initialise)
focal_class.identifier: parse
focal_class.modifiers: public
focal_class.parameters: (final String query, final boolean initialise)
focal_class.return: Query
focal_class.signature: Query parse(final String query, final boolean initialise)
focal_class.class_method_signature: SQL2Parser.parse(final String query)
focal_class.full_signature: public Query parse(final String query)
focal_class.identifier: parse
focal_class.modifiers: public
focal_class.parameters: (final String query)
focal_class.return: Query
focal_class.signature: Query parse(final String query)
focal_class.class_method_signature: SQL2Parser.parseSelect()
focal_class.full_signature: private QueryImpl parseSelect()
focal_class.identifier: parseSelect
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: QueryImpl
focal_class.signature: QueryImpl parseSelect()
focal_class.class_method_signature: SQL2Parser.addColumnIfNecessary(ArrayList<ColumnOrWildcard> list,
              String columnName, String propertyName)
focal_class.full_signature: private static void addColumnIfNecessary(ArrayList<ColumnOrWildcard> list,
              String columnName, String propertyName)
focal_class.identifier: addColumnIfNecessary
focal_class.modifiers: private static
focal_class.parameters: (ArrayList<ColumnOrWildcard> list,
              String columnName, String propertyName)
focal_class.return: void
focal_class.signature: void addColumnIfNecessary(ArrayList<ColumnOrWildcard> list,
              String columnName, String propertyName)
focal_class.class_method_signature: SQL2Parser.setSupportSQL1(boolean sql1)
focal_class.full_signature: public void setSupportSQL1(boolean sql1)
focal_class.identifier: setSupportSQL1
focal_class.modifiers: public
focal_class.parameters: (boolean sql1)
focal_class.return: void
focal_class.signature: void setSupportSQL1(boolean sql1)
focal_class.class_method_signature: SQL2Parser.parseSelector()
focal_class.full_signature: private SelectorImpl parseSelector()
focal_class.identifier: parseSelector
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: SelectorImpl
focal_class.signature: SelectorImpl parseSelector()
focal_class.class_method_signature: SQL2Parser.readLabel()
focal_class.full_signature: private String readLabel()
focal_class.identifier: readLabel
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String readLabel()
focal_class.class_method_signature: SQL2Parser.readName()
focal_class.full_signature: private String readName()
focal_class.identifier: readName
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String readName()
focal_class.class_method_signature: SQL2Parser.parseSource()
focal_class.full_signature: private SourceImpl parseSource()
focal_class.identifier: parseSource
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: SourceImpl
focal_class.signature: SourceImpl parseSource()
focal_class.class_method_signature: SQL2Parser.parseJoinCondition()
focal_class.full_signature: private JoinConditionImpl parseJoinCondition()
focal_class.identifier: parseJoinCondition
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: JoinConditionImpl
focal_class.signature: JoinConditionImpl parseJoinCondition()
focal_class.class_method_signature: SQL2Parser.parseConstraint()
focal_class.full_signature: private ConstraintImpl parseConstraint()
focal_class.identifier: parseConstraint
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ConstraintImpl
focal_class.signature: ConstraintImpl parseConstraint()
focal_class.class_method_signature: SQL2Parser.parseAnd()
focal_class.full_signature: private ConstraintImpl parseAnd()
focal_class.identifier: parseAnd
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ConstraintImpl
focal_class.signature: ConstraintImpl parseAnd()
focal_class.class_method_signature: SQL2Parser.parseCondition()
focal_class.full_signature: private ConstraintImpl parseCondition()
focal_class.identifier: parseCondition
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ConstraintImpl
focal_class.signature: ConstraintImpl parseCondition()
focal_class.class_method_signature: SQL2Parser.parseCondition(DynamicOperandImpl left)
focal_class.full_signature: private ConstraintImpl parseCondition(DynamicOperandImpl left)
focal_class.identifier: parseCondition
focal_class.modifiers: private
focal_class.parameters: (DynamicOperandImpl left)
focal_class.return: ConstraintImpl
focal_class.signature: ConstraintImpl parseCondition(DynamicOperandImpl left)
focal_class.class_method_signature: SQL2Parser.getPropertyExistence(PropertyValueImpl p)
focal_class.full_signature: private PropertyExistenceImpl getPropertyExistence(PropertyValueImpl p)
focal_class.identifier: getPropertyExistence
focal_class.modifiers: private
focal_class.parameters: (PropertyValueImpl p)
focal_class.return: PropertyExistenceImpl
focal_class.signature: PropertyExistenceImpl getPropertyExistence(PropertyValueImpl p)
focal_class.class_method_signature: SQL2Parser.getPropertyInexistence(PropertyValueImpl p)
focal_class.full_signature: private PropertyInexistenceImpl getPropertyInexistence(PropertyValueImpl p)
focal_class.identifier: getPropertyInexistence
focal_class.modifiers: private
focal_class.parameters: (PropertyValueImpl p)
focal_class.return: PropertyInexistenceImpl
focal_class.signature: PropertyInexistenceImpl getPropertyInexistence(PropertyValueImpl p)
focal_class.class_method_signature: SQL2Parser.parseConditionFunctionIf(String functionName)
focal_class.full_signature: private ConstraintImpl parseConditionFunctionIf(String functionName)
focal_class.identifier: parseConditionFunctionIf
focal_class.modifiers: private
focal_class.parameters: (String functionName)
focal_class.return: ConstraintImpl
focal_class.signature: ConstraintImpl parseConditionFunctionIf(String functionName)
focal_class.class_method_signature: SQL2Parser.readAbsolutePath()
focal_class.full_signature: private String readAbsolutePath()
focal_class.identifier: readAbsolutePath
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String readAbsolutePath()
focal_class.class_method_signature: SQL2Parser.readPath()
focal_class.full_signature: private String readPath()
focal_class.identifier: readPath
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String readPath()
focal_class.class_method_signature: SQL2Parser.parseDynamicOperand()
focal_class.full_signature: private DynamicOperandImpl parseDynamicOperand()
focal_class.identifier: parseDynamicOperand
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: DynamicOperandImpl
focal_class.signature: DynamicOperandImpl parseDynamicOperand()
focal_class.class_method_signature: SQL2Parser.parseExpressionFunction(String functionName)
focal_class.full_signature: private DynamicOperandImpl parseExpressionFunction(String functionName)
focal_class.identifier: parseExpressionFunction
focal_class.modifiers: private
focal_class.parameters: (String functionName)
focal_class.return: DynamicOperandImpl
focal_class.signature: DynamicOperandImpl parseExpressionFunction(String functionName)
focal_class.class_method_signature: SQL2Parser.parsePropertyValue(String name)
focal_class.full_signature: private PropertyValueImpl parsePropertyValue(String name)
focal_class.identifier: parsePropertyValue
focal_class.modifiers: private
focal_class.parameters: (String name)
focal_class.return: PropertyValueImpl
focal_class.signature: PropertyValueImpl parsePropertyValue(String name)
focal_class.class_method_signature: SQL2Parser.parseStaticOperand()
focal_class.full_signature: private StaticOperandImpl parseStaticOperand()
focal_class.identifier: parseStaticOperand
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: StaticOperandImpl
focal_class.signature: StaticOperandImpl parseStaticOperand()
focal_class.class_method_signature: SQL2Parser.getUncastLiteral(PropertyValue value)
focal_class.full_signature: private LiteralImpl getUncastLiteral(PropertyValue value)
focal_class.identifier: getUncastLiteral
focal_class.modifiers: private
focal_class.parameters: (PropertyValue value)
focal_class.return: LiteralImpl
focal_class.signature: LiteralImpl getUncastLiteral(PropertyValue value)
focal_class.class_method_signature: SQL2Parser.parseCastAs(PropertyValue value)
focal_class.full_signature: private PropertyValue parseCastAs(PropertyValue value)
focal_class.identifier: parseCastAs
focal_class.modifiers: private
focal_class.parameters: (PropertyValue value)
focal_class.return: PropertyValue
focal_class.signature: PropertyValue parseCastAs(PropertyValue value)
focal_class.class_method_signature: SQL2Parser.getPropertyTypeFromName(String name)
focal_class.full_signature: public static int getPropertyTypeFromName(String name)
focal_class.identifier: getPropertyTypeFromName
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.return: int
focal_class.signature: int getPropertyTypeFromName(String name)
focal_class.class_method_signature: SQL2Parser.matchesPropertyType(int propertyType, String name)
focal_class.full_signature: private static boolean matchesPropertyType(int propertyType, String name)
focal_class.identifier: matchesPropertyType
focal_class.modifiers: private static
focal_class.parameters: (int propertyType, String name)
focal_class.return: boolean
focal_class.signature: boolean matchesPropertyType(int propertyType, String name)
focal_class.class_method_signature: SQL2Parser.parseOrder()
focal_class.full_signature: private OrderingImpl[] parseOrder()
focal_class.identifier: parseOrder
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: OrderingImpl[]
focal_class.signature: OrderingImpl[] parseOrder()
focal_class.class_method_signature: SQL2Parser.parseColumns()
focal_class.full_signature: private ArrayList<ColumnOrWildcard> parseColumns()
focal_class.identifier: parseColumns
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ArrayList<ColumnOrWildcard>
focal_class.signature: ArrayList<ColumnOrWildcard> parseColumns()
focal_class.class_method_signature: SQL2Parser.readOptionalAlias(ColumnOrWildcard column)
focal_class.full_signature: private boolean readOptionalAlias(ColumnOrWildcard column)
focal_class.identifier: readOptionalAlias
focal_class.modifiers: private
focal_class.parameters: (ColumnOrWildcard column)
focal_class.return: boolean
focal_class.signature: boolean readOptionalAlias(ColumnOrWildcard column)
focal_class.class_method_signature: SQL2Parser.resolveColumns(ArrayList<ColumnOrWildcard> list)
focal_class.full_signature: private ColumnImpl[] resolveColumns(ArrayList<ColumnOrWildcard> list)
focal_class.identifier: resolveColumns
focal_class.modifiers: private
focal_class.parameters: (ArrayList<ColumnOrWildcard> list)
focal_class.return: ColumnImpl[]
focal_class.signature: ColumnImpl[] resolveColumns(ArrayList<ColumnOrWildcard> list)
focal_class.class_method_signature: SQL2Parser.addWildcardColumns(
              Collection<ColumnImpl> columns, String selectorName)
focal_class.full_signature: private void addWildcardColumns(
              Collection<ColumnImpl> columns, String selectorName)
focal_class.identifier: addWildcardColumns
focal_class.modifiers: private
focal_class.parameters: (
              Collection<ColumnImpl> columns, String selectorName)
focal_class.return: void
focal_class.signature: void addWildcardColumns(
              Collection<ColumnImpl> columns, String selectorName)
focal_class.class_method_signature: SQL2Parser.addWildcardColumns(
              Collection<ColumnImpl> columns, SelectorImpl selector)
focal_class.full_signature: private void addWildcardColumns(
              Collection<ColumnImpl> columns, SelectorImpl selector)
focal_class.identifier: addWildcardColumns
focal_class.modifiers: private
focal_class.parameters: (
              Collection<ColumnImpl> columns, SelectorImpl selector)
focal_class.return: void
focal_class.signature: void addWildcardColumns(
              Collection<ColumnImpl> columns, SelectorImpl selector)
focal_class.class_method_signature: SQL2Parser.readIf(String token)
focal_class.full_signature: private boolean readIf(String token)
focal_class.identifier: readIf
focal_class.modifiers: private
focal_class.parameters: (String token)
focal_class.return: boolean
focal_class.signature: boolean readIf(String token)
focal_class.class_method_signature: SQL2Parser.isToken(String token)
focal_class.full_signature: private boolean isToken(String token)
focal_class.identifier: isToken
focal_class.modifiers: private
focal_class.parameters: (String token)
focal_class.return: boolean
focal_class.signature: boolean isToken(String token)
focal_class.class_method_signature: SQL2Parser.read(String expected)
focal_class.full_signature: private void read(String expected)
focal_class.identifier: read
focal_class.modifiers: private
focal_class.parameters: (String expected)
focal_class.return: void
focal_class.signature: void read(String expected)
focal_class.class_method_signature: SQL2Parser.readString()
focal_class.full_signature: private PropertyValue readString()
focal_class.identifier: readString
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: PropertyValue
focal_class.signature: PropertyValue readString()
focal_class.class_method_signature: SQL2Parser.addExpected(String token)
focal_class.full_signature: private void addExpected(String token)
focal_class.identifier: addExpected
focal_class.modifiers: private
focal_class.parameters: (String token)
focal_class.return: void
focal_class.signature: void addExpected(String token)
focal_class.class_method_signature: SQL2Parser.initialize(String query)
focal_class.full_signature: private void initialize(String query)
focal_class.identifier: initialize
focal_class.modifiers: private
focal_class.parameters: (String query)
focal_class.return: void
focal_class.signature: void initialize(String query)
focal_class.class_method_signature: SQL2Parser.checkRunOver(int i, int len, int startLoop)
focal_class.full_signature: private void checkRunOver(int i, int len, int startLoop)
focal_class.identifier: checkRunOver
focal_class.modifiers: private
focal_class.parameters: (int i, int len, int startLoop)
focal_class.return: void
focal_class.signature: void checkRunOver(int i, int len, int startLoop)
focal_class.class_method_signature: SQL2Parser.read()
focal_class.full_signature: private void read()
focal_class.identifier: read
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void read()
focal_class.class_method_signature: SQL2Parser.readString(int i, char end)
focal_class.full_signature: private void readString(int i, char end)
focal_class.identifier: readString
focal_class.modifiers: private
focal_class.parameters: (int i, char end)
focal_class.return: void
focal_class.signature: void readString(int i, char end)
focal_class.class_method_signature: SQL2Parser.checkLiterals(boolean text)
focal_class.full_signature: private void checkLiterals(boolean text)
focal_class.identifier: checkLiterals
focal_class.modifiers: private
focal_class.parameters: (boolean text)
focal_class.return: void
focal_class.signature: void checkLiterals(boolean text)
focal_class.class_method_signature: SQL2Parser.readDecimal(int start, int i)
focal_class.full_signature: private void readDecimal(int start, int i)
focal_class.identifier: readDecimal
focal_class.modifiers: private
focal_class.parameters: (int start, int i)
focal_class.return: void
focal_class.signature: void readDecimal(int start, int i)
focal_class.class_method_signature: SQL2Parser.getSyntaxError()
focal_class.full_signature: private ParseException getSyntaxError()
focal_class.identifier: getSyntaxError
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ParseException
focal_class.signature: ParseException getSyntaxError()
focal_class.class_method_signature: SQL2Parser.getSyntaxError(String expected)
focal_class.full_signature: private ParseException getSyntaxError(String expected)
focal_class.identifier: getSyntaxError
focal_class.modifiers: private
focal_class.parameters: (String expected)
focal_class.return: ParseException
focal_class.signature: ParseException getSyntaxError(String expected)
focal_class.class_method_signature: SQL2Parser.getOnlySelectorName()
focal_class.full_signature: private String getOnlySelectorName()
focal_class.identifier: getOnlySelectorName
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getOnlySelectorName()
focal_class.class_method_signature: SQL2Parser.escapeStringLiteral(String value)
focal_class.full_signature: public static String escapeStringLiteral(String value)
focal_class.identifier: escapeStringLiteral
focal_class.modifiers: public static
focal_class.parameters: (String value)
focal_class.return: String
focal_class.signature: String escapeStringLiteral(String value)
focal_class.class_method_signature: SQL2Parser.setAllowTextLiterals(boolean allowTextLiterals)
focal_class.full_signature: public void setAllowTextLiterals(boolean allowTextLiterals)
focal_class.identifier: setAllowTextLiterals
focal_class.modifiers: public
focal_class.parameters: (boolean allowTextLiterals)
focal_class.return: void
focal_class.signature: void setAllowTextLiterals(boolean allowTextLiterals)
focal_class.class_method_signature: SQL2Parser.setAllowNumberLiterals(boolean allowNumberLiterals)
focal_class.full_signature: public void setAllowNumberLiterals(boolean allowNumberLiterals)
focal_class.identifier: setAllowNumberLiterals
focal_class.modifiers: public
focal_class.parameters: (boolean allowNumberLiterals)
focal_class.return: void
focal_class.signature: void setAllowNumberLiterals(boolean allowNumberLiterals)
focal_class.class_method_signature: SQL2Parser.setIncludeSelectorNameInWildcardColumns(boolean value)
focal_class.full_signature: public void setIncludeSelectorNameInWildcardColumns(boolean value)
focal_class.identifier: setIncludeSelectorNameInWildcardColumns
focal_class.modifiers: public
focal_class.parameters: (boolean value)
focal_class.return: void
focal_class.signature: void setIncludeSelectorNameInWildcardColumns(boolean value)
focal_class.class_method_signature: SQL2Parser.isInternal(String statement)
focal_class.full_signature: public static boolean isInternal(String statement)
focal_class.identifier: isInternal
focal_class.modifiers: public static
focal_class.parameters: (String statement)
focal_class.return: boolean
focal_class.signature: boolean isInternal(String statement)
focal_method.body: public Query parse(final String query, final boolean initialise) throws ParseException {
          // TODO possibly support union,... as available at
          // http://docs.jboss.org/modeshape/latest/manuals/reference/html/jcr-query-and-search.html
  
          initialize(query);
          selectors.clear();
          expected = new ArrayList<String>();
          bindVariables = new HashMap<String, BindVariableValueImpl>();
          read();
          boolean explain = false, measure = false;
          if (readIf("EXPLAIN")) {
              explain = true;
          }
          if (readIf("MEASURE")) {
              measure = true;
          }
          Query q = parseSelect();
          while (true) {
              if (!readIf("UNION")) {
                  break;
              }
              boolean unionAll = readIf("ALL");
              QueryImpl q2 = parseSelect();
              q = new UnionQueryImpl(unionAll, q, q2, settings);
          }
          OrderingImpl[] orderings = null;
          if (readIf("ORDER")) {
              read("BY");
              orderings = parseOrder();
          }
          QueryOptions options = new QueryOptions();
          if (readIf("OPTION")) {
              read("(");
              while (true) {
                  if (readIf("TRAVERSAL")) {
                      String n = readName().toUpperCase(Locale.ENGLISH);
                      options.traversal = Traversal.valueOf(n);
                  } else if (readIf("INDEX")) {
                      if (readIf("NAME")) {
                          options.indexName = readName();
                      } else if (readIf("TAG")) {
                          options.indexTag = readLabel();
                      }
                  } else {
                      break;
                  }
                  readIf(",");
              }
              read(")");
          }
          if (!currentToken.isEmpty()) {
              throw getSyntaxError("<end>");
          }
          q.setOrderings(orderings);
          q.setExplain(explain);
          q.setMeasure(measure);
          q.setInternal(isInternal(query));
          q.setQueryOptions(options);
  
          if (initialise) {
              try {
                  q.init();
              } catch (Exception e) {
                  ParseException e2 = new ParseException(statement + ": " + e.getMessage(), 0);
                  e2.initCause(e);
                  throw e2;
              }
          }
  
          return q;
      }
focal_method.class_method_signature: SQL2Parser.parse(final String query, final boolean initialise)
focal_method.full_signature: public Query parse(final String query, final boolean initialise)
focal_method.identifier: parse
focal_method.invocations: initialize clear read readIf readIf parseSelect readIf readIf parseSelect readIf read parseOrder readIf read readIf toUpperCase readName valueOf readIf readIf readName readIf readLabel readIf read isEmpty getSyntaxError setOrderings setExplain setMeasure setInternal isInternal setQueryOptions init getMessage initCause
focal_method.modifiers: public
focal_method.parameters: (final String query, final boolean initialise)
focal_method.return: Query
focal_method.signature: Query parse(final String query, final boolean initialise)