Package | Description |
---|---|
com.igormaznitsa.jcp.directives | |
com.igormaznitsa.jcp.expression |
Modifier and Type | Method and Description |
---|---|
private java.util.List<ExpressionTree> |
ActionDirectiveHandler.parseString(java.lang.String str,
PreprocessorContext context) |
Modifier and Type | Field and Description |
---|---|
private ExpressionTree |
Expression.expressionTree
The variable contains the expression tree
|
Modifier and Type | Method and Description |
---|---|
ExpressionTree |
ExpressionParser.parse(java.lang.String expressionStr,
PreprocessorContext context)
To parse an expression represented as a string and get a tree
|
private ExpressionTree |
ExpressionParser.readFunction(AbstractFunction function,
java.io.PushbackReader reader,
PreprocessorContext context,
FilePositionInfo[] includeStack,
java.lang.String sources)
The auxiliary method allows to form a function and its arguments as a tree
|
Modifier and Type | Method and Description |
---|---|
ExpressionTreeElement |
ExpressionTreeElement.addSubTree(ExpressionTree tree)
Add a tree as new child and make the maximum priority for it
|
void |
ExpressionTree.addTree(ExpressionTree tree)
Add whole tree as a tree element, also it sets the maximum priority to the
new element
|
static Value |
Expression.evalTree(ExpressionTree tree,
PreprocessorContext context)
Evaluate an expression tree
|
ExpressionItem |
ExpressionParser.readExpression(java.io.PushbackReader reader,
ExpressionTree tree,
PreprocessorContext context,
boolean insideBracket,
boolean argument)
It reads an expression from a reader and fill a tree
|
(package private) ExpressionItem |
ExpressionParser.readFunctionArgument(java.io.PushbackReader reader,
ExpressionTree tree,
PreprocessorContext context,
FilePositionInfo[] callStack,
java.lang.String source)
The auxiliary method allows to read a function argument
|
Modifier and Type | Method and Description |
---|---|
void |
ExpressionTreeElement.fillArguments(java.util.List<ExpressionTree> arguments)
It fills children slots from a list containing expression trees
|
Constructor and Description |
---|
Expression(PreprocessorContext context,
ExpressionTree tree) |