Uses of Interface
openjava.ptree.Expression

Packages that use Expression
openjava.mop Provides classes that are fundamental to the design of the OpenJava Meta-Object Protocols (MOP).  
openjava.ptree   
openjava.ptree.util   
openjava.syntax   
 

Uses of Expression in openjava.mop
 

Methods in openjava.mop that return Expression
protected static Expression OJClass.makeExpression(Environment env, java.lang.String str)
          Generates a expression parse tree from a given String object under the given environment.
protected  Expression OJClass.makeExpression(java.lang.String str)
          Generates an expression parse tree from a given String object under the environment of this class object.
 Expression OJClass.expandFieldRead(Environment env, FieldAccess expr)
           
 Expression OJClass.expandFieldWrite(Environment env, AssignmentExpression expr)
           
 Expression OJClass.expandMethodCall(Environment env, MethodCall expr)
           
 Expression OJClass.expandAllocation(Environment env, AllocationExpression expr)
           
 Expression OJClass.expandArrayAllocation(Environment env, ArrayAllocationExpression expr)
           
 Expression OJClass.expandArrayAccess(Environment env, ArrayAccess expr)
           
 Expression OJClass.expandAssignmentExpression(Environment env, AssignmentExpression expr)
           
 Expression OJClass.expandExpression(Environment env, Expression expr)
           
 Expression OJClass.expandCastExpression(Environment env, CastExpression decl)
           
 Expression OJClass.expandCastedExpression(Environment env, CastExpression decl)
           
 

Methods in openjava.mop with parameters of type Expression
 Expression OJClass.expandExpression(Environment env, Expression expr)
           
 

Uses of Expression in openjava.ptree
 

Classes in openjava.ptree that implement Expression
 class AllocationExpression
          The AllocationExpression class represents an expression which allocates a new object with its constructor.
 class ArrayAccess
          The ArrayAccess represents an array access.
 class ArrayAllocationExpression
          The ArrayAllocationExpression class represents an expression which allocates a new array object.
 class AssignmentExpression
          The AssignmentExpression class represents an assignment expression with an assignment operator.
 class BinaryExpression
          The BinaryExpression class represents an expression which consists of an operators and two operands.
 class CastExpression
          The CastExpression class represents a cast expression of parse tree.
 class ClassLiteral
          The ClassLiteral class represents an expression as a object of Class class, which is suppoted since JDK 1.1.
 class ConditionalExpression
          The ConditionalExpression class represents a conditional expression like:
(i == 1) ?
 class ExpressionObject
          The Expression interface presents common interface to access Expression node of parse tree this interface is implements by UnaryExpression BinaryExpression ConditionalExpression AssignmentExpression CastExpression AllocationExpression ArrayAllocationExpression Variable MethodCall SpecialName Literal ClassLiteral ArrayAccess FieldAccess
 class FieldAccess
          The FieldAccess class represents a field access like :
f().str
In this field access, you can get f() by getReferenceExpr() and can get str by getName() .
 class InstanceofExpression
          The InstanceofExpression represents the expression like :
obj instanceof Object
If the operator in the expression of the left operand has week unity, this automatically produces the code in which the left operand is enclosed by parenthesises.
 class Literal
          The Literal class represents a literal.
 class MethodCall
          The MethodCall class represents a method call expression.
 class SelfAccess
          The class SelfAccess represents an access to this object. this or super
 class UnaryExpression
          The UnaryExpression class presents for an expression which consists of unary operator with one Expression.
 class Variable
          The Variable class represents a type specifier node of parse tree.
 

Methods in openjava.ptree that return Expression
 Expression AssignmentExpression.getLeft()
          Gets the expression of the left operand.
 Expression AssignmentExpression.getRight()
          Gets the expression of the right operand.
 Expression UnaryExpression.getExpression()
          Gets the expression operated in this expression.
 Expression ThrowStatement.getExpression()
          Gets the returned expression by this statement.
 Expression ArrayAccess.getReferenceExpr()
          Gets the expression of array.
 Expression ArrayAccess.getIndexExpr()
          Gets the dimexpr list.
 Expression ForStatement.getCondition()
          Gets the condition part of this for-statement.
 Expression SwitchStatement.getExpression()
          Gets the expression of the condition to switch.
 Expression FieldAccess.getReferenceExpr()
          Gets the expression accessed.
 Expression CaseLabel.getExpression()
           
 Expression DoWhileStatement.getExpression()
          Gets the condtion of this do-while statement.
 Expression ConditionalExpression.getCondition()
          Gets the conditional part of this conditional expression.
 Expression ConditionalExpression.getTrueCase()
          Gets the true case part of this conditional expression.
 Expression ConditionalExpression.getFalseCase()
          Gets the false case part of this.
 Expression SynchronizedStatement.getExpression()
          Gets the expression to be synchronized.
 Expression InstanceofExpression.getExpression()
          Gets the expression of the left operand to be tested in this expression.
 Expression ExpressionStatement.getExpression()
          Gets the expression of this statement.
 Expression MethodCall.getReferenceExpr()
          Gets the expression accessed.
 Expression AllocationExpression.getEncloser()
          Gets the expression of enclosing object.
 Expression ExpressionList.get(int n)
          Gets the specified element at the index.
 Expression ExpressionList.remove(int index)
          Removes the element at the specified position in this Vector. shifts any subsequent elements to the left (subtracts one from their indices).
 Expression CastExpression.getExpression()
          Gets the expression of the operand to be casted in this expression.
 Expression BinaryExpression.getLeft()
          Gets the expression of the left operand.
 Expression BinaryExpression.getRight()
          Gets the expression of the right operand.
 Expression IfStatement.getExpression()
          Gets the condition of this if statement.
 Expression ReturnStatement.getExpression()
          Gets the returned expression by this statement.
 Expression WhileStatement.getExpression()
          Gets the condtion of this while statement.
 Expression ConstructorInvocation.getEnclosing()
           
 

Methods in openjava.ptree with parameters of type Expression
 void AssignmentExpression.setLeft(Expression lexpr)
          Sets the expression of the left operand.
 void AssignmentExpression.setRight(Expression rexpr)
          Sets the expression of the right operand.
 void UnaryExpression.setExpression(Expression expr)
          Sets the expression operated in this expression.
 void ThrowStatement.setExpression(Expression expr)
          Sets the returned expression by this statement.
 void ArrayAccess.setReferenceExpr(Expression expr)
          Sets the expression accessed as array.
 void ArrayAccess.setIndexExpr(Expression dimexprs)
          Sets the dimexpr list.
 void ForStatement.setCondition(Expression cond)
          Sets the condition part of this for-statement.
 void SwitchStatement.setExpression(Expression expr)
          Sets the expression of the condition to switch.
 void FieldAccess.setReferenceExpr(Expression expr)
          Sets the expression accessed.
 void DoWhileStatement.setExpression(Expression expr)
          Sets the condtion of this do-while statement.
 void ConditionalExpression.setCondition(Expression expr)
          Sets the conditional part of this conditional expression.
 void ConditionalExpression.setTrueCase(Expression expr)
          Sets the true case part of this conditional expression.
 void ConditionalExpression.setFalseCase(Expression expr)
          Sets the false case part of this.
 void SynchronizedStatement.setExpression(Expression expr)
          Sets the expression to be synchronized by this statement.
 void InstanceofExpression.setLeft(Expression lexpr)
          Sets the expression of the left operand to be tested in this expression.
 void ExpressionStatement.setExpression(Expression expr)
          Sets the expression of this statement.
 void MethodCall.setReferenceExpr(Expression expr)
          Sets the expression accessed.
 void AllocationExpression.setEncloser(Expression encloser)
          Sets the expression of enclosing object.
 void ExpressionList.add(Expression p)
          Adds the specified element after the list This causes side-effect.
 void ExpressionList.set(int index, Expression p)
          Adds the specified element after the list This causes side-effect.
 void ExpressionList.insertElementAt(Expression p, int n)
          Inserts the specified element into the list before the specified element of the list.
 void CastExpression.setExpression(Expression expr)
          Sets the expression of the operand to be casted in this expression.
 void BinaryExpression.setLeft(Expression lexpr)
          Sets the expression of the left operand.
 void BinaryExpression.setRight(Expression rexpr)
          Sets the expression of the right operand.
 void IfStatement.setExpression(Expression expr)
          Sets the condition of this if statement.
 void ReturnStatement.setExpression(Expression expr)
          Sets the returned expression by this statement.
 void WhileStatement.setExpression(Expression expr)
          Sets the condtion of this while statement.
 

Constructors in openjava.ptree with parameters of type Expression
AssignmentExpression(Expression lexp, int opr, Expression rexp)
          Allocates a new object.
AssignmentExpression(Expression lexp, java.lang.String opr, Expression rexp)
           
UnaryExpression(int opr, Expression expr)
          Allocates a new object.
UnaryExpression(Expression expr, int opr)
          Allocates a new object.
ThrowStatement(Expression expr)
          Allocates a new ThrowStatement object.
ArrayAccess(Expression expr, Expression index_expr)
           
ForStatement(ExpressionList init, Expression expr, ExpressionList iterator, StatementList stmts)
          Allocates a new ForStatement object.
ForStatement(TypeName tspec, VariableDeclarator[] vdecls, Expression expr, ExpressionList iterator, StatementList stmts)
           
SwitchStatement(Expression expr, CaseGroupList cglist)
          Allocates a new object.
FieldAccess(Expression expr, java.lang.String name)
          An access to the specified field of the given expression.
CaseLabel(Expression expr)
           
DoWhileStatement(StatementList stmts, Expression expr)
          Allocates a new object.
ConditionalExpression(Expression condition, Expression truecase, Expression falsecase)
          Allocates a new conditional expression object.
SynchronizedStatement(Expression expr, StatementList stmts)
          Allocates a new object.
InstanceofExpression(Expression lexp, TypeName tspec)
          Allocates a new object.
ExpressionStatement(Expression expr)
          Allocates a new object.
MethodCall(Expression expr, java.lang.String name, ExpressionList args)
          Allocates a new method call expression object.
AllocationExpression(Expression encloser, TypeName typename, ExpressionList args, MemberDeclarationList mdlst)
          Allocates a new object with the class body.
AllocationExpression(Expression encloser, TypeName typename, ExpressionList args)
          Allocates a new object with the class body.
ExpressionList(Expression e0)
           
ExpressionList(Expression e0, Expression e1)
           
ExpressionList(Expression e0, Expression e1, Expression e2)
           
CastExpression(TypeName ts, Expression expr)
          Allocates a new object.
CastExpression(OJClass type, Expression expr)
           
BinaryExpression(Expression lexp, int opr, Expression rexp)
          Allocates a new object.
BinaryExpression(Expression lexp, java.lang.String opr, Expression rexp)
           
IfStatement(Expression expr, StatementList stmts, StatementList elsestmts)
          Constructs new IfStatement from prototype object
IfStatement(Expression expr, StatementList stmts)
          Constructs new IfStatement from prototype object
ReturnStatement(Expression expr)
          Allocates a new object.
WhileStatement(Expression expr, StatementList stmts)
          Allocates a new object.
ConstructorInvocation(ExpressionList exprs, Expression enclosing)
          Constructs a new constructor invocation. i.e.
 

Uses of Expression in openjava.ptree.util
 

Methods in openjava.ptree.util that return Expression
 Expression EvaluationShuttle.evaluateDown(AllocationExpression p)
           
 Expression EvaluationShuttle.evaluateDown(ArrayAccess p)
           
 Expression EvaluationShuttle.evaluateDown(ArrayAllocationExpression p)
           
 Expression EvaluationShuttle.evaluateDown(AssignmentExpression p)
           
 Expression EvaluationShuttle.evaluateDown(BinaryExpression p)
           
 Expression EvaluationShuttle.evaluateDown(CastExpression p)
           
 Expression EvaluationShuttle.evaluateDown(ClassLiteral p)
           
 Expression EvaluationShuttle.evaluateDown(ConditionalExpression p)
           
 Expression EvaluationShuttle.evaluateDown(FieldAccess p)
           
 Expression EvaluationShuttle.evaluateDown(InstanceofExpression p)
           
 Expression EvaluationShuttle.evaluateDown(Literal p)
           
 Expression EvaluationShuttle.evaluateDown(MethodCall p)
           
 Expression EvaluationShuttle.evaluateDown(SelfAccess p)
           
 Expression EvaluationShuttle.evaluateDown(UnaryExpression p)
           
 Expression EvaluationShuttle.evaluateDown(Variable p)
           
 Expression EvaluationShuttle.evaluateUp(AllocationExpression p)
           
 Expression EvaluationShuttle.evaluateUp(ArrayAccess p)
           
 Expression EvaluationShuttle.evaluateUp(ArrayAllocationExpression p)
           
 Expression EvaluationShuttle.evaluateUp(AssignmentExpression p)
           
 Expression EvaluationShuttle.evaluateUp(BinaryExpression p)
           
 Expression EvaluationShuttle.evaluateUp(CastExpression p)
           
 Expression EvaluationShuttle.evaluateUp(ClassLiteral p)
           
 Expression EvaluationShuttle.evaluateUp(ConditionalExpression p)
           
 Expression EvaluationShuttle.evaluateUp(FieldAccess p)
           
 Expression EvaluationShuttle.evaluateUp(InstanceofExpression p)
           
 Expression EvaluationShuttle.evaluateUp(Literal p)
           
 Expression EvaluationShuttle.evaluateUp(MethodCall p)
           
 Expression EvaluationShuttle.evaluateUp(SelfAccess p)
           
 Expression EvaluationShuttle.evaluateUp(UnaryExpression p)
           
 Expression EvaluationShuttle.evaluateUp(Variable p)
           
 Expression ClassLiteralReplacer.evaluateDown(ClassLiteral ptree)
           
static Expression PartialParser.makeExpression(Environment env, java.lang.String str)
          Makes a ptree node from the string like :
"i + 3"
or :
"f()"
 Expression MemberAccessCorrector.evaluateDown(FieldAccess ptree)
           
 Expression MemberAccessCorrector.evaluateDown(MethodCall ptree)
           
 Expression ExpansionApplier.evaluateUp(AllocationExpression p)
          Includes expandAllocation() and expandExpression().
 Expression ExpansionApplier.evaluateUp(ArrayAccess p)
          Includes expandArrayAccess() and expandExpression().
 Expression ExpansionApplier.evaluateUp(ArrayAllocationExpression p)
          Includes expandArrayAllocation() and expandExpression().
 Expression ExpansionApplier.evaluateUp(AssignmentExpression p)
          Includes expandFieldWrite(), expandAssignmentExpression() and expandExpression().
 Expression ExpansionApplier.evaluateUp(BinaryExpression p)
          Includes expandExpression().
 Expression ExpansionApplier.evaluateUp(CastExpression p)
          Includes expandCastExpression(), expandCastedExpression() and expandExpression().
 Expression ExpansionApplier.evaluateUp(ClassLiteral p)
          Includes expandExpression().
 Expression ExpansionApplier.evaluateUp(ConditionalExpression p)
          Includes expandExpression().
 Expression ExpansionApplier.evaluateUp(FieldAccess p)
          Includes expandFieldRead() and expandExpression().
 Expression ExpansionApplier.evaluateUp(InstanceofExpression p)
          Includes expandExpression().
 Expression ExpansionApplier.evaluateUp(Literal p)
          Includes expandExpression().
 Expression ExpansionApplier.evaluateUp(MethodCall p)
          Includes expandMethodCall() and expandExpression().
 Expression ExpansionApplier.evaluateUp(SelfAccess p)
          Includes expandExpression().
 Expression ExpansionApplier.evaluateUp(UnaryExpression p)
          Includes expandExpression().
 Expression ExpansionApplier.evaluateUp(Variable p)
          Includes expandExpression().
 

Methods in openjava.ptree.util with parameters of type Expression
 void ParseTreeVisitor.visit(Expression p)
           
 

Uses of Expression in openjava.syntax
 

Methods in openjava.syntax that return Expression
static Expression JavaSyntaxRules.consumeExpression(TokenSource token_src, Environment env)
          Consumes a single expression from given token source.
static Expression JavaSyntaxRules.consumeExpression(TokenSource token_src)
           
 Expression ExpressionRule.consumeExpression(TokenSource token_src)
          Subclasses of this class can override this method to extend its returnable expressions.