com.go.tea.parsetree |
|
Java Source File Name | Type | Comment |
AndExpression.java | Class | AndExpression defines a logical "and" operation with short-circuit
semantics. |
ArithmeticExpression.java | Class | ArithmeticExpression defines addition, subtraction, multiplication,
division or remainder operations. |
ArrayLookup.java | Class | An ArrayLookup can access indexed properties on objects. |
AssignmentStatement.java | Class | AssignmentStatements can only assign values to variables, and not to
array elements. |
BinaryExpression.java | Class | A BinaryExpression contains a left expression, a right expression and
an operator. |
BinaryLogicalExpression.java | Class | |
Block.java | Class | A Block is a StatementList that most likely appeared in the source file
delimited by braces. |
BooleanLiteral.java | Class | BooleanLiterals can only have one of two values, true or false. |
BreakStatement.java | Class | author: Sean T. |
CallExpression.java | Class | |
ConcatenateExpression.java | Class | A ConcatenateExpression takes two Expressions, converts their values to
strings and returns a new string with the concatenated result.
The operator should only be Token.CONCAT. |
ExceptionGuardStatement.java | Class | A statement that catches instances of Exception, calls
ThreadGroup.uncaughtException, and moves on. |
Expression.java | Class | An Expression is a piece of code that, when executed, produces a value. |
ExpressionList.java | Class | An ExpressionList wraps a list of expressions that may appear in a
call statement or new array expression. |
ExpressionStatement.java | Class | An ExpressionStatement allows an Expression to be converted to a Statement. |
ForeachStatement.java | Class | A ForeachStatement iterates over the values of an array or a Collection,
storing each value in a variable, allowing a statement or statements to
operate on each. |
FunctionCallExpression.java | Class | A CallExpression to a function. |
IfStatement.java | Class | An IfStatement consists of a condition, a "then" part and an "else" part.
Both the then and else parts are optional, but a parser should never
create an IfStatement without a then part. |
Literal.java | Class | A literal is an expression that has a constant value. |
Logical.java | Interface | An interface that marks an expression as performing a boolean logic
operation. |
Lookup.java | Class | A Lookup can access properties on objects. |
Name.java | Class | A Name just associates a String with a SourceInfo object. |
NegateExpression.java | Class | NegateExpression is a simple unary expression that calculates the negative
value of an expression. |
NewArrayExpression.java | Class | An expression that evaluates to a new array or Map of values. |
Node.java | Class | The superclass of all parse tree nodes. |
NodeVisitor.java | Interface | A NodeVisitor enables operations to be performed on a parse tree.
The Visitor design pattern is discussed in detail in Design Patterns
(ISBN 0-201-63361-2) by Gamma, Helm, Johnson and Vlissides.
The traditional operations performed on parse trees are type checking
and code generation. |
NotExpression.java | Class | NotExpression is a simple unary expression that calculates the logical
"not" value of an expression. |
NullLiteral.java | Class | A Literal representing the null Object. |
NumberLiteral.java | Class | Base class for all Literals that have a numeric type. |
OrExpression.java | Class | OrExpression defines a logical "or" operation with short-circuit
semantics. |
ParenExpression.java | Class | A ParenExpression is a thin wrapper around an Expression that was
delimited by parenthesis in the source code. |
RelationalExpression.java | Class | RelationalExpression defines seven operations, "==", "!=", "<", ">", "<="
">=" and "isa". |
ReturnStatement.java | Class | A ReturnStatement allows the values of Expressions to be returned from an
execution scope. |
Statement.java | Class | A Statement represents a stand-alone unit of code. |
StatementList.java | Class | A StatementList wraps a list of statements as if they were a single
statement. |
StringLiteral.java | Class | A StringLiteral is a constant string of characters, usually delimited
by quotes in a source file. |
SubstitutionStatement.java | Class | SubstitutionStatement is represented as '...' in a template. |
Template.java | Class | Template is the main container node for Tea templates. |
TemplateCallExpression.java | Class | A CallExpression to a template is specified in a template with the "call"
keyword. |
TreeMutator.java | Class | TreeMutator is similar to
TreeWalker TreeWalker in that it
traverses a parse tree in canonocal order, and only a few visit methods
should be overridden. |
TreeWalker.java | Class | A TreeWalker traverses a parse tree in its canonical order. |
TypeName.java | Class | |
Variable.java | Class | A Variable represents a variable declaration. |
VariableRef.java | Class | VariableRef is used to reference declared Variables. |