Package org.apache.lucene.expressions.js
Class VariableContext
java.lang.Object
org.apache.lucene.expressions.js.VariableContext
A helper to parse the context of a variable name, which is the base variable, followed by the
sequence of array (integer or string indexed) and member accesses.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents what a piece of a variable does. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe integer value for this piece of the variable.final StringThe text of this piece of the variable.final VariableContext.TypeThe type of this piece of a variable. -
Method Summary
Modifier and TypeMethodDescriptionstatic final VariableContext[]Parses a normalized javascript variable.
-
Field Details
-
type
The type of this piece of a variable. -
text
The text of this piece of the variable. Used forVariableContext.Type.MEMBERandVariableContext.Type.STR_INDEXtypes. -
integer
public final int integerThe integer value for this piece of the variable. Used forVariableContext.Type.INT_INDEX.
-
-
Method Details
-
parse
Parses a normalized javascript variable. All strings in the variable should be single quoted, and no spaces (except possibly within strings).
-