Uses of Interface
openjava.ptree.ParseTree

Packages that use ParseTree
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 ParseTree in openjava.mop
 

Methods in openjava.mop that return ParseTree
 ParseTree OJMethod.getSuffix(java.lang.String keyword)
          Obtains an parse tree of suffix in extended syntax starting with the specified keyword.
 ParseTree OJClass.getSuffix(java.lang.String keyword)
          Obtains an parse tree of suffix in extended syntax starting with the specified keyword.
 ParseTree OJConstructor.getSuffix(java.lang.String keyword)
           
 

Uses of ParseTree in openjava.ptree
 

Subinterfaces of ParseTree in openjava.ptree
 interface Expression
          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
 interface MemberDeclaration
          The MemberDeclaration interface types ptree-node into the member declaration in the body of class.
 interface Statement
          The Statement class presents common statement interface of parse tree.
 interface VariableInitializer
          The VariableInitializer class presents common interfaces to several initializer format interface VariableInitializer is implemented by Expression ArrayInitializer
 

Classes in openjava.ptree that implement ParseTree
 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 ArrayInitializer
          The ArrayInitializer class presents initializer list of array elements.
 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 Block
          The Block class represents a node of parse tree of block statement like :
{ int i = 0; i = f( i ); }
 class BreakStatement
          The BreakStatement class represents a break statement node of parse tree.
 class CaseGroup
           
 class CaseGroupList
          The CaseGroupList class presents for the node of parse tree of CaseGroup
 class CaseLabel
          The CaseLabel class presents for the ptree-node like "case 1 :"
 class CaseLabelList
          The CaseLabelList class presents for the node of parse tree of CaseLabel
 class CastExpression
          The CastExpression class represents a cast expression of parse tree.
 class CatchBlock
          The CatchBlock class presents catch node of parse tree
 class CatchList
          The CatchList class presents for the node of parse tree of CatchBlock
 class ClassDeclaration
          The ClassDeclaration class presents class declaraton node of parse tree.
 class ClassDeclarationList
          The ClassDeclarationList class presents for the node of parse tree of ClassDeclaration
 class ClassLiteral
          The ClassLiteral class represents an expression as a object of Class class, which is suppoted since JDK 1.1.
 class CompilationUnit
          The CompilationUnit class presents for the whole parse tree in a file.
 class ConditionalExpression
          The ConditionalExpression class represents a conditional expression like:
(i == 1) ?
 class ConstructorDeclaration
          The ConstructorDeclaration class represents constructor declaration node of the parse tree.
 class ConstructorInvocation
          The ConstructorInvocation class presents expression statement node of parse tree
 class ContinueStatement
          The ContinueStatement class represents a continue statement node of parse tree.
 class DoWhileStatement
          The DoWhileStatement class represents a do-while statement node of parse tree.
 class EmptyStatement
          The EmptyStatement class represents an empty statement node of parse tree.
 class ExpressionList
          The ExpressionList class presents for the node of parse tree of Expression
 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 ExpressionStatement
          The ExpressionStatement class presents expression statement node of parse tree
 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 FieldDeclaration
          The FieldDeclaration class presents for node of parse tree.
 class ForStatement
          The ForStatement class represents a for statement node of parse tree.
 class IfStatement
          The IfStatement class represents a if statement node of parse tree
 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 LabeledStatement
          The LabeledStatement class presents labeled statement node of parse tree
 class Leaf
          The Leaf class is a token-node in the parse tree of OpenJava.
 class List
          The List class presents for the list of parse trees.
 class Literal
          The Literal class represents a literal.
 class MemberDeclarationList
          The MemberDeclarationList class presents for the node of parse tree of MemberDeclaration
 class MemberInitializer
          The InstanceInitilizer class represents instance initializer block of parse tree.
 class MethodCall
          The MethodCall class represents a method call expression.
 class MethodDeclaration
          The MethodDeclaration class presents method declaration node of parse tree.
 class ModifierList
          The ModifierList class presents for the node of parse tree of qualified name.
 class NonLeaf
          The NonLeaf class presents for node of parse tree.
 class ObjectList
          The ObjectList class presents for the node of parse tree of Objects
 class Parameter
          The Parameter class represents parameter node of parse tree.
 class ParameterList
          The ParameterList class presents for the node of parse tree of Parameter
 class ParseTreeObject
          The ParseTree class presents for the node of parse tree.
 class ReturnStatement
          The ReturnStatement class represents a return statement node of parse tree.
 class SelfAccess
          The class SelfAccess represents an access to this object. this or super
 class StatementList
          The StatementList class presents for the node of parse tree of Statement
 class SwitchStatement
          The SwitchStatement class represents switch statement node of parse tree.
 class SynchronizedStatement
          The SynchronizedStatement class represents a synchronized statement node of parse tree.
 class ThrowStatement
          The ThrowStatement class represents a throw statement node of parse tree.
 class TryStatement
          The TryStatement class represents a try statement node of parse tree.
 class TypeName
          The TypeName class represents a type specifier node of parse tree.
 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.
 class VariableDeclaration
          The VariableDeclaration class presents local variable declaration statement node of parse tree.
 class VariableDeclarator
          The VariableDeclarator class presents variable declarator node of parse tree
 class WhileStatement
          The WhileStatement class presents while statement node of parse tree
 

Methods in openjava.ptree that return ParseTree
 ParseTree ParseTreeObject.makeCopy()
          shallow copy
abstract  ParseTree ParseTreeObject.makeRecursiveCopy()
          deep copy
 ParseTree NonLeaf.makeRecursiveCopy()
          Makes a new copy (another object) of this nonleaf-node recursively.
 ParseTree Leaf.makeRecursiveCopy()
          Makes a new copy of this leaf-node.
 ParseTree Leaf.makeCopy()
          Makes a new copy of this leaf-node.
 ParseTree AssignmentExpression.makeRecursiveCopy()
           
 ParseTree AssignmentExpression.makeCopy()
           
 ParseTree UnaryExpression.makeRecursiveCopy()
           
 ParseTree UnaryExpression.makeCopy()
           
 ParseTree List.makeRecursiveCopy()
          Makes a new copy (another object) of this list-node.
 ParseTree FieldAccess.getReference()
           
 ParseTree BinaryExpression.makeRecursiveCopy()
           
 ParseTree BinaryExpression.makeCopy()
           
 ParseTree ParseTree.makeRecursiveCopy()
          Makes a new copy (another object) of this nonleaf-node recursively.
 ParseTree ParseTree.makeCopy()
          Makes a new copy of this nonleaf-node as a ptree-node.
 ParseTree TypeName.makeRecursiveCopy()
           
 ParseTree TypeName.makeCopy()
           
 

Methods in openjava.ptree with parameters of type ParseTree
 void ParseTreeObject.replace(ParseTree replacement)
           
protected abstract  void ParseTreeObject.replaceChildWith(ParseTree dist, ParseTree replacement)
           
abstract  boolean ParseTreeObject.equals(ParseTree p)
          Tests if this parse-tree-node's value equals to the specified ptree-node's.
 boolean ParseTreeObject.eq(ParseTree p)
          Tests if this parse-tree-node's value equals to the specified ptree-node's.
static boolean ParseTreeObject.eq(ParseTree p, ParseTree q)
          Return true if only they refer to the same object.
static boolean ParseTreeObject.equal(ParseTree p, ParseTree q)
          May return true if two ptree-nodes don't refer to not the same objects but their contents are equivalent.
protected  void NonLeaf.replaceChildWith(ParseTree dist, ParseTree replacement)
           
 boolean NonLeaf.equals(ParseTree p)
          Tests if this nonleaf-node's value equals to the specified ptree-node's.
protected  void Leaf.replaceChildWith(ParseTree dist, ParseTree replacement)
           
 boolean Leaf.equals(ParseTree p)
          Tests if the specified ptree-node equals to this leaf-node.
protected  void List.replaceChildWith(ParseTree dist, ParseTree replacement)
           
 boolean List.equals(ParseTree p)
          Tests if this list-node's value equals to the specified ptree-node's.
 boolean MemberDeclaration.eq(ParseTree p)
           
 boolean MemberDeclaration.equals(ParseTree p)
           
 void ParseTree.replace(ParseTree replacement)
           
 boolean ParseTree.equals(ParseTree p)
          Tests if this parse-tree-node's value equals to the specified ptree-node's.
 boolean ParseTree.eq(ParseTree p)
          Tests if this parse-tree-node's value equals to the specified ptree-node's.
 

Uses of ParseTree in openjava.ptree.util
 

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

Uses of ParseTree in openjava.syntax
 

Methods in openjava.syntax that return ParseTree
abstract  ParseTree AbstractSyntaxRule.consume(TokenSource token_src)
          Consumes tokens from the given token source following the rule.
 ParseTree CompositeRule.consume(TokenSource token_src)
          Consumes token source.
 ParseTree TokenRule.consume(TokenSource token_src)
          Consumes token source.
 ParseTree BlockRule.consume(TokenSource token_src)
           
 ParseTree SyntaxRule.consume(TokenSource token_src)
          Consumes tokens from the given token source following the rule.
protected abstract  ParseTree SeparatedListRule.getList()
           
 ParseTree SeparatedListRule.consume(TokenSource token_src)
          Consumes token source.
protected  ParseTree DefaultListRule.getList()
           
 ParseTree SelectionRule.consume(TokenSource token_src)
           
 ParseTree NameRule.consume(TokenSource token_src)
          Consumes a dot-separated name like java.lang.String.
 ParseTree StatementRule.consume(TokenSource token_src)
           
 ParseTree TypeNameRule.consume(TokenSource token_src)
           
 ParseTree IdentifierRule.consume(TokenSource token_src)
           
 ParseTree IterationRule.consume(TokenSource token_src)
          Consumes token source.
 ParseTree PrepPhraseRule.consume(TokenSource token_src)
           
protected  ParseTree ExpressionListRule.getList()
           
 ParseTree ExpressionRule.consume(TokenSource token_src)