Package | Description |
---|---|
ast | |
parser |
Modifier and Type | Class and Description |
---|---|
class |
ArrayAssignExpr
The ArrayAssignExpr class represents array assignment expressions.
|
class |
ArrayExpr
The ArrayExpr class represents array expressions.
|
class |
AssignExpr
The AssignExpr class represents assignment expressions.
|
class |
BinaryArithDivideExpr
The BinaryArithDivideExpr class represents a divide expression.
|
class |
BinaryArithExpr
The abstract BinaryArithExpr class represents arithmetic
expressions.
|
class |
BinaryArithMinusExpr
The BinaryArithMinusExpr class represents a minus expression.
|
class |
BinaryArithModulusExpr
The BinaryArithModulusExpr class represents a modulus expression.
|
class |
BinaryArithPlusExpr
The BinaryArithPlusExpr class represents a plus expression.
|
class |
BinaryArithTimesExpr
The BinaryArithTimesExpr class represents a times expression.
|
class |
BinaryCompEqExpr
The BinaryCompEqExpr class represents equivalence expressions.
|
class |
BinaryCompExpr
The abstract BinaryCompExpr class represents comparison expressions.
|
class |
BinaryCompGeqExpr
The BinaryCompGeqExpr class represents greater than or equal to
expressions.
|
class |
BinaryCompGtExpr
The BinaryCompGtExpr class represents greater than expressions.
|
class |
BinaryCompLeqExpr
The BinaryCompLeqExpr class represents less than or equal to
expressions.
|
class |
BinaryCompLtExpr
The BinaryCompLtExpr class represents less than expressions.
|
class |
BinaryCompNeExpr
The BinaryCompNeExpr class represents not equals expressions.
|
class |
BinaryExpr
The abstract BinaryExpr class represents binary expressions
whose operands are both expressions (i.e., this does not include assignments,
instanceof, etc.).
|
class |
BinaryLogicAndExpr
The BinaryLogicAndExpr class represents logical AND expressions.
|
class |
BinaryLogicExpr
The abstract BinaryLogicExpr class represents boolean logic
expressions.
|
class |
BinaryLogicOrExpr
The BinaryLogicOrExpr class represents logical OR expressions.
|
class |
CastExpr
The CastExpr class represents a cast expression.
|
class |
ConstBooleanExpr
The ConstBooleanExpr class represents a boolean constant expression.
|
class |
ConstExpr
The abstract ConstExpr class represents constant expressions
(int constants, boolean constants, String constants).
|
class |
ConstIntExpr
The ConstIntExpr class represents an integer constant expression.
|
class |
ConstStringExpr
The ConstStringExpr class represents a String constant expression.
|
class |
DispatchExpr
The DispatchExpr class represents a dispatch expression.
|
class |
InstanceofExpr
The InstanceofExpr class represents an instanceof expression.
|
class |
NewArrayExpr
The NewArrayExpr class represents a new array expression
(constructing
new arrays).
|
class |
NewExpr
The NewExpr class represents a new expression (constructing
new objects).
|
class |
UnaryDecrExpr
The UnaryDecrExpr class represents decrement shortcut expressions.
|
class |
UnaryExpr
The abstract UnaryExpr class represents unary expressions
whose operand is an expression (i.e., this does not include new
constructions).
|
class |
UnaryIncrExpr
The UnaryIncrExpr class represents increment shortcut expressions.
|
class |
UnaryNegExpr
The UnaryNegExpr class represents arithmetic negation ('-')
expressions.
|
class |
UnaryNotExpr
The UnaryNotExpr class represents logical not (complement)
expressions.
|
class |
VarExpr
The VarExpr class represents variable expressions.
|
Modifier and Type | Field and Description |
---|---|
protected Expr |
ArrayAssignExpr.expr
The righthand expression for assigning to the lefthand variable
|
protected Expr |
AssignExpr.expr
The righthand expression for assigning to the lefthand variable
|
protected Expr |
CastExpr.expr
The expression to cast
|
protected Expr |
ExprStmt.expr
The expression within the statement
|
protected Expr |
InstanceofExpr.expr
The lefthand expression
|
protected Expr |
ReturnStmt.expr
An expression to be returned (null for no return expression)
|
protected Expr |
UnaryExpr.expr
The expression
|
protected Expr |
ArrayAssignExpr.index
The index expression
|
protected Expr |
ArrayExpr.index
The index expression
|
protected Expr |
DeclStmt.init
The (non-optional) initialization expression for the variable being
declared
|
protected Expr |
Field.init
The (optional) initialization expression for the field (instance variable)
|
protected Expr |
ForStmt.initExpr
The initialization expression (null for no init expression)
|
protected Expr |
BinaryExpr.leftExpr
The lefthand expression
|
protected Expr |
ForStmt.predExpr
The predicate expression (null for no predicate -- must be boolean
expression)
|
protected Expr |
IfStmt.predExpr
The predicate expression
|
protected Expr |
WhileStmt.predExpr
The predicate expression
|
protected Expr |
ArrayExpr.ref
The optional reference object (must be 'this' or 'super')
|
protected Expr |
VarExpr.ref
The optional reference object expression
(must be 'this' or 'super' for non-arrays)
|
protected Expr |
DispatchExpr.refExpr
The reference expression (produces the object to dispatch on)
|
protected Expr |
BinaryExpr.rightExpr
The righthand expression
|
protected Expr |
NewArrayExpr.size
The size of the constructed array
|
protected Expr |
ForStmt.updateExpr
The update expression (null for no update expression)
|
Modifier and Type | Method and Description |
---|---|
Expr |
ArrayAssignExpr.getExpr()
Get the righthand expression of the assignment
|
Expr |
AssignExpr.getExpr()
Get the righthand expression of the assignment
|
Expr |
CastExpr.getExpr()
Get the expression to cast
|
Expr |
ExprStmt.getExpr()
Get the expression within the statement
|
Expr |
InstanceofExpr.getExpr()
Get the lefthand expression
|
Expr |
ReturnStmt.getExpr()
Get the return expression
|
Expr |
UnaryExpr.getExpr()
Get the expression
|
Expr |
ArrayAssignExpr.getIndex()
Get the index expression
|
Expr |
ArrayExpr.getIndex()
Get the index expression
|
Expr |
DeclStmt.getInit()
Get the initialization expression for the declared variable
|
Expr |
Field.getInit()
Get the initialization expression of the field
|
Expr |
ForStmt.getInitExpr()
Get the initialization expression
If null, then no initialization expression
|
Expr |
BinaryExpr.getLeftExpr()
Get the lefthand expression
|
Expr |
ForStmt.getPredExpr()
Get the predicate expression
If null, then no predicate expression
|
Expr |
IfStmt.getPredExpr()
Get the predicate expression
|
Expr |
WhileStmt.getPredExpr()
Get the predicate expression
|
Expr |
ArrayExpr.getRef()
Get the reference object
Only applicable if array is a field (otherwise this returns null)
|
Expr |
VarExpr.getRef()
Get the reference object expression
Only applicable if variable is a field (otherwise this returns null)
|
Expr |
DispatchExpr.getRefExpr()
Get the reference expression
|
Expr |
BinaryExpr.getRightExpr()
Get the righthand expression
|
Expr |
NewArrayExpr.getSize()
Get the construction size expression
|
Expr |
ForStmt.getUpdateExpr()
Get the update expression
If null, then no update expression
|
Constructor and Description |
---|
ArrayAssignExpr(int lineNum,
java.lang.String refName,
java.lang.String name,
Expr index,
Expr expr)
ArrayAssignExpr constructor
|
ArrayExpr(int lineNum,
Expr ref,
java.lang.String name,
Expr index)
ArrayExpr constructor
|
AssignExpr(int lineNum,
java.lang.String refName,
java.lang.String name,
Expr expr)
AssignExpr constructor
|
BinaryArithDivideExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryArithDivideExpr constructor
|
BinaryArithExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryArithExpr constructor
|
BinaryArithMinusExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryArithMinusExpr constructor
|
BinaryArithModulusExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryArithModulusExpr constructor
|
BinaryArithPlusExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryArithPlusExpr constructor
|
BinaryArithTimesExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryArithTimesExpr constructor
|
BinaryCompEqExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryCompEqExpr constructor
|
BinaryCompExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryCompExpr constructor
|
BinaryCompGeqExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryCompGeqExpr constructor
|
BinaryCompGtExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryCompGtExpr constructor
|
BinaryCompLeqExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryCompLeqExpr constructor
|
BinaryCompLtExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryCompLtExpr constructor
|
BinaryCompNeExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryCompNeExpr constructor
|
BinaryExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryExpr constructor
|
BinaryLogicAndExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryLogicAndExpr constructor
|
BinaryLogicExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryLogicExpr constructor
|
BinaryLogicOrExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryLogicOrExpr constructor
|
CastExpr(int lineNum,
java.lang.String type,
Expr expr)
CastExpr constructor
|
DeclStmt(int lineNum,
java.lang.String type,
java.lang.String name,
Expr init)
DeclStmt constructor
|
DispatchExpr(int lineNum,
Expr refExpr,
java.lang.String methodName,
ExprList actualList)
DispatchExpr constructor
|
ExprStmt(int lineNum,
Expr expr)
ExprStmt constructor
|
Field(int lineNum,
java.lang.String type,
java.lang.String name,
Expr init)
Field constructor
|
ForStmt(int lineNum,
Expr initExpr,
Expr predExpr,
Expr updateExpr,
Stmt bodyStmt)
ForStmt constructor
|
IfStmt(int lineNum,
Expr predExpr,
Stmt thenStmt,
Stmt elseStmt)
IfStmt constructor
|
InstanceofExpr(int lineNum,
Expr expr,
java.lang.String type)
InstanceofExpr constructor
|
NewArrayExpr(int lineNum,
java.lang.String type,
Expr size)
NewArrayExpr constructor
|
ReturnStmt(int lineNum,
Expr expr)
ReturnStmt constructor
|
UnaryDecrExpr(int lineNum,
Expr expr,
boolean isPostfix)
UnaryDecrExpr constructor
|
UnaryExpr(int lineNum,
Expr expr)
UnaryExpr constructor
|
UnaryIncrExpr(int lineNum,
Expr expr,
boolean isPostfix)
UnaryIncrExpr constructor
|
UnaryNegExpr(int lineNum,
Expr expr)
UnaryNegExpr constructor
|
UnaryNotExpr(int lineNum,
Expr expr)
UnaryNotExpr constructor
|
VarExpr(int lineNum,
Expr ref,
java.lang.String name)
VarExpr constructor
|
WhileStmt(int lineNum,
Expr predExpr,
Stmt bodyStmt)
WhileStmt constructor
|
Modifier and Type | Method and Description |
---|---|
Expr |
Parser.Parse11Expr() |
Expr |
Parser.ParseExpr() |
Expr |
Parser.ParseExpr1() |
Expr |
Parser.ParseExpr10() |
Expr |
Parser.ParseExpr11() |
Expr |
Parser.ParseExpr2() |
Expr |
Parser.ParseExpr3() |
Expr |
Parser.ParseExpr4() |
Expr |
Parser.ParseExpr5() |
Expr |
Parser.ParseExpr6() |
Expr |
Parser.ParseExpr7() |
Expr |
Parser.ParseExpr8() |
Expr |
Parser.ParseExpr9() |
Expr |
Parser.ParseNewExpr() |
Expr |
Parser.ParseNewExprAux(java.lang.String id,
int line) |
Expr |
Parser.ParseVarExpr() |