| Modifier and Type | Field and Description |
|---|---|
| protected JexlEngine. | frame
The map of named registers aka script parameters. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the imagethe identifier identifier, String the identifier image image)Checks whether an identifier is a local variable or argument, ie stored in a register. |
| public void | declareVariable(ASTVar
the identifier used to declare identifier, String the variable name image)Declares a local variable. |
| public JexlEngine. | |
| public Token | |
| public void | Identifier(boolean
whether the identifier is beginning an l/r value top)Default implementation does nothing but is overriden by generated code. |
| public final void | |
| pack-priv void | |
| pack-priv void | |
| public void |
| frame | back to summary |
|---|---|
| protected JexlEngine. The map of named registers aka script parameters. Each parameter is associated to a register and is materialized as an offset in the registers array used during evaluation. | |
| JexlParser | back to summary |
|---|---|
| public JexlParser() | |
| checkVariable | back to summary |
|---|---|
| public String checkVariable(ASTIdentifier identifier, String image) Checks whether an identifier is a local variable or argument, ie stored in a register.
| |
| declareVariable | back to summary |
|---|---|
| public void declareVariable(ASTVar identifier, String image) Declares a local variable. This method creates an new entry in the named register map. | |
| getFrame | back to summary |
|---|---|
| public JexlEngine. Gets the frame used by this parser. Since local variables create new named registers, it is important to regain access after parsing to known which / how-many registers are needed.
| |
| getToken | back to summary |
|---|---|
| public Token getToken(int index) | |
| Identifier | back to summary |
|---|---|
| public void Identifier(boolean top) throws ParseException Default implementation does nothing but is overriden by generated code.
| |
| Identifier | back to summary |
|---|---|
| public final void Identifier() throws ParseException | |
| jjtreeCloseNodeScope | back to summary |
|---|---|
| pack-priv void jjtreeCloseNodeScope(JexlNode n) throws ParseException Ambiguous statement detector.
| |
| jjtreeOpenNodeScope | back to summary |
|---|---|
| pack-priv void jjtreeOpenNodeScope(JexlNode n) | |
| setFrame | back to summary |
|---|---|
| public void setFrame(JexlEngine. Sets the frame to use bythis parser. This is used to allow parameters to be declared before parsing.
| |