| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private List | |
| private Pattern | |
| private AttributeValueTemplate | |
| private boolean | |
| private Pattern | |
| private AttributeValueTemplate | |
| private AttributeValueTemplate | |
| private AttributeValueTemplate | |
| private AttributeValueTemplate | |
| private int | |
| private Expression | |
| private static final String[] | |
| private static final String[] | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addVariable(VariableRefBase variableRef)
Implements com. Add new variable to the closure. |
| private void | compileConstructor(ClassGenerator classGen)
Compiles a constructor for the class _className that inherits from {Any,Single,Multiple}NodeCounter. |
| private void | |
| private void | compileLocals(NodeCounterGenerator nodeCounterGen, MatchGenerator matchGen, InstructionList il)
This method compiles code that is common to matchesFrom() and matchesCount() in the auxillary class. |
| private void | |
| public String | getInnerClassName()
Implements com. Returns the name of the auxiliary class or null if this predicate is compiled inside the Translet. |
| public Closure | getParentClosure()
Implements com. Returns a reference to its parent closure or null if outermost. |
| public boolean | |
| public boolean | inInnerClass()
Implements com. Returns true if this closure is compiled in an inner class (i.e. if this is a real closure). |
| public boolean | |
| public void | parseContents(Parser parser)
Overrides com. Parse the contents of this syntax tree nodes (child nodes, XPath expressions, patterns and functions). |
| public void | translate(ClassGenerator classGen, MethodGenerator methodGen)
Overrides com. Translate this node into JVM bytecodes. |
| public Type | typeCheck(SymbolTable stable)
Overrides com. Type check all the children of this node. |
| _className | back to summary |
|---|---|
| private String _className | |
| _closureVars | back to summary |
|---|---|
| private List<VariableRefBase> _closureVars | |
| _count | back to summary |
|---|---|
| private Pattern _count | |
| _format | back to summary |
|---|---|
| private AttributeValueTemplate _format | |
| _formatNeeded | back to summary |
|---|---|
| private boolean _formatNeeded | |
| _from | back to summary |
|---|---|
| private Pattern _from | |
| _groupingSeparator | back to summary |
|---|---|
| private AttributeValueTemplate _groupingSeparator | |
| _groupingSize | back to summary |
|---|---|
| private AttributeValueTemplate _groupingSize | |
| _lang | back to summary |
|---|---|
| private AttributeValueTemplate _lang | |
| _letterValue | back to summary |
|---|---|
| private AttributeValueTemplate _letterValue | |
| _level | back to summary |
|---|---|
| private int _level | |
| _value | back to summary |
|---|---|
| private Expression _value | |
| ClassNames | back to summary |
|---|---|
| private static final String[] ClassNames | |
| FieldNames | back to summary |
|---|---|
| private static final String[] FieldNames | |
| LEVEL_ANY | back to summary |
|---|---|
| private static final int LEVEL_ANY | |
| LEVEL_MULTIPLE | back to summary |
|---|---|
| private static final int LEVEL_MULTIPLE | |
| LEVEL_SINGLE | back to summary |
|---|---|
| private static final int LEVEL_SINGLE | |
| Number | back to summary |
|---|---|
| pack-priv Number() | |
| addVariable | back to summary |
|---|---|
| public void addVariable(VariableRefBase variableRef) Implements com. Add new variable to the closure. | |
| compileConstructor | back to summary |
|---|---|
| private void compileConstructor(ClassGenerator classGen) Compiles a constructor for the class _className that inherits from {Any,Single,Multiple}NodeCounter. This constructor simply calls the same constructor in the super class. | |
| compileDefault | back to summary |
|---|---|
| private void compileDefault(ClassGenerator classGen, MethodGenerator methodGen) | |
| compileLocals | back to summary |
|---|---|
| private void compileLocals(NodeCounterGenerator nodeCounterGen, MatchGenerator matchGen, InstructionList il) This method compiles code that is common to matchesFrom() and matchesCount() in the auxillary class. | |
| compilePatterns | back to summary |
|---|---|
| private void compilePatterns(ClassGenerator classGen, MethodGenerator methodGen) | |
| getInnerClassName | back to summary |
|---|---|
| public String getInnerClassName() Implements com. Returns the name of the auxiliary class or null if this predicate is compiled inside the Translet. | |
| getParentClosure | back to summary |
|---|---|
| public Closure getParentClosure() Implements com. Returns a reference to its parent closure or null if outermost. | |
| hasValue | back to summary |
|---|---|
| public boolean hasValue() True if the has specified a value for this instance of number. | |
| inInnerClass | back to summary |
|---|---|
| public boolean inInnerClass() Implements com. Returns true if this closure is compiled in an inner class (i.e. if this is a real closure). | |
| isDefault | back to summary |
|---|---|
| public boolean isDefault() Returns true if this instance of number has neither a from nor a count pattern. | |
| parseContents | back to summary |
|---|---|
| public void parseContents(Parser parser) Overrides com. Doc from com. Parse the contents of this syntax tree nodes (child nodes, XPath expressions, patterns and functions). The default behaviour is to parser the syntax tree node's children (since there are no common expressions, patterns, etc. that can be handled in this base class. | |
| translate | back to summary |
|---|---|
| public void translate(ClassGenerator classGen, MethodGenerator methodGen) Overrides com. Doc from com. Translate this node into JVM bytecodes. | |
| typeCheck | back to summary |
|---|---|
| public Type typeCheck(SymbolTable stable) throws TypeCheckError Overrides com. Doc from com. Type check all the children of this node. | |