All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.Class

java.lang.Object
   |
   +----openjava.util.PartialParser
           |
           +----openjava.tools.WrappedClass
                   |
                   +----openjava.Class

public class Class
extends WrappedClass
The Class class will be the base class of metaclassess. and includes translation methods.


Constructor Index

 o Class()
Allocates a new Class instance (metaobject).
 o Class(TypeDeclaration)
Allocates a new Class instance (metaobject).
 o Class(TypeDeclaration, Ptree)
Allocates a new Class instance (metaobject).

Method Index

 o addCompilationUnit(CompilationUnit)
Adds the additional compilation unit to be generated.
 o additionalCompilationUnits()
Gets the additional compilation units.
 o eq(Ptree, Ptree)
Tests if two ptree point one object.
 o equal(Ptree, Ptree)
Tests if two ptree objects has same contents.
 o errorMessage(String)
Shows an error message and terminates OpenJava.
 o errorMessage(String, Ptree)
Shows error messages and terminates OpenJava.
 o finish()
finish() is called on each metaobject at the end.
 o getImported()
Obtain the import statements of the compilation unit including this class.
 o getMetaInfoPtree(Class, String)
 o getMetaInfoString(Class, String)
 o getPackage()
Obtain the package of the compilation unit including this class.
 o getTypeDeclaration()
Gets the type declaration.
 o getUserKeywords()
Returns the user defined keywords.
 o getUserModifiers()
Returns the user defined keywords.
 o initialize()
At the beginning, initialize() is once called on each metaclass.
 o isAllocationExpression(Ptree)
Tests if the ptree object is an instance of allocation expression classes.
 o isGuardingStatement(Ptree)
Tests if the ptree object is an instance of guarding statement classes.
 o isIterationStatement(Ptree)
Tests if the ptree object is an instance of iteration statement classes.
 o isJumpStatement(Ptree)
Tests if the ptree object is an instance of jump statement classes.
 o isSelectionStatement(Ptree)
Tests if the ptree object is an instance of selection statement classes.
 o mopErrorMessage(String, String)
Shows error messages of MOP and terminates OpenJava.
 o putMetaInfo(String, Ptree)
 o putMetaInfo(String, String)
 o setImported(ImportStatementList)
Only internal use by system.
 o setPackage(QualifiedName)
Only internal use by system.
 o setTypeDeclaration(TypeDeclaration)
Sets the type declaration.
 o translate()
Main method to be called by OpenJava system.
 o translateAllocationExpression(Expression)
Translates the allocation expression node.
 o translateArrayAccess(ArrayAccess)
Translates the array access node.
 o translateArrayAllocationExpression(ArrayAllocationExpression)
Translates the array allocation expression node.
 o translateArrayInitializer(ArrayInitializer)
Translates the array initializer node
 o translateAssignmentExpression(AssignmentExpression)
Translates assignment expression node
 o translateBinaryExpression(BinaryExpression)
Translates the binary expression.
 o translateBlock(Block)
Translates block node
 o translateBreakStatement(BreakStatement)
Translates break statement node.
 o translateCaseGroup(CaseGroup)
Translates statements after case node
 o translateCaseGroupList(CaseGroupList)
Translates switch statement node
 o translateCastExpression(CastExpression)
Translates the cast expression node.
 o translateCatchBlock(CatchBlock)
Translates the catch block node.
 o translateCatchList(CatchList)
Translates catch list
 o translateClassDeclaration(ClassDeclaration)
Translates class declaration
 o translateClassType(ClassType)
Translates class type node
 o translateClassTypeList(ClassTypeList)
Translates class type list
 o translateConditionalExpression(ConditionalExpression)
Translates the conditional expression.
 o translateConstructExpression(ConstructExpression)
Translates the construct expression node.
 o translateConstructorDeclaration(ConstructorDeclaration)
Translates constructor declaration node
 o translateContinueStatement(ContinueStatement)
Translates the continue statement node.
 o translateDimExprList(DimExprList)
Translates the array dimension expr list.
 o translateDoWhileStatement(DoWhileStatement)
Translates the do-while statement node.
 o translateEmptyStatement(EmptyStatement)
Translates empty statement
 o translateExpression(Expression)
Translates the expression node.
 o translateExpressionList(ExpressionList)
Translates the expression list.
 o translateExpressionStatement(ExpressionStatement)
Translates expression statement node.
 o translateFieldAccess(FieldAccess)
Translates the field access node.
 o translateFieldDeclaration(FieldDeclaration)
Translates field variable declaration node
 o translateForStatement(ForStatement)
Translates the for statement node.
 o translateGuardingStatement(Statement)
Translates the guarding statement node.
 o translateIdentifier(Identifier)
Translates the identifier node.
 o translateIfStatement(IfStatement)
Translates if statement node
 o translateInstanceInitializer(InstanceInitializer)
Translates static initializer node
 o translateInstanceofExpression(InstanceofExpression)
Translates the instanceof expression.
 o translateInterfaceDeclaration(InterfaceDeclaration)
Translates interface declaration
 o translateIterationStatement(Statement)
Translates iteration node
 o translateJumpStatement(Statement)
Translates jump statement node
 o translateLabeldStatement(LabeledStatement)
Translates labeled statement node
 o translateLiteral(Literal)
Translates the literal.
 o translateMemberDeclaration(MemberDeclaration)
Translates member declaration list node
 o translateMemberDeclarationList(MemberDeclarationList)
Translates field declaration list
 o translateMethodCall(MethodCall)
Translates the mehtod call node.
 o translateMethodDeclaration(MethodDeclaration)
Translates method declaration node
 o translateModifier(Modifier)
Translates modfier node
 o translateModifierList(ModifierList)
Translates modifier list
 o translateParameter(Parameter)
Translates parameter
 o translateParameterList(ParameterList)
Translates parameter list
 o translatePrimitiveType(PrimitiveType)
Translates primitive type node
 o translateQualifiedName(QualifiedName)
Translates qualified name
 o translateReturnStatement(ReturnStatement)
Translates return statement node
 o translateSelectionStatement(Statement)
Translates selection statement node
 o translateSpecialName(SpecialName)
Translates the special name node.
 o translateStatement(Statement)
Translates statement node
 o translateStatementList(StatementList)
Translates statement list
 o translateStaticInitializer(StaticInitializer)
Translates static initializer node
 o translateSwitchStatement(SwitchStatement)
Translates switch statement node
 o translateSynchronizedStatement(SynchronizedStatement)
Translates synchronized statement node.
 o translateThrowStatement(ThrowStatement)
Translates throw statement node
 o translateTryStatement(TryStatement)
Translates the try statement node.
 o translateTypeDeclaration(TypeDeclaration)
Translates type declaration
 o translateTypeName(TypeName)
Translates type name node
 o translateTypeSpecifier(TypeSpecifier)
Translates type specifier node
 o translateUnaryExpression(UnaryExpression)
Translates the unary expression.
 o translateVariableDeclaration(VariableDeclaration)
Translates local variable declaration statement node.
 o translateVariableDeclarator(VariableDeclarator)
Translates variable declarator node
 o translateVariableInitializer(VariableInitializer)
Translates the variable initializer node
 o translateWhileStatement(WhileStatement)
Translates while statement node
 o warningMessage(String)
Shows an warning message.

Constructors

 o Class
 public Class()
Allocates a new Class instance (metaobject).

 o Class
 public Class(TypeDeclaration def)
Allocates a new Class instance (metaobject).

Parameters:
def - the type declaration.
 o Class
 public Class(TypeDeclaration def,
              Ptree metaargs)
Allocates a new Class instance (metaobject).

Parameters:
def - the type declaration.
metaargs - the meta arguments. This will be ignored.

Methods

 o setPackage
 public void setPackage(QualifiedName pack)
Only internal use by system.

Parameters:
pack - the package name
 o getPackage
 public QualifiedName getPackage()
Obtain the package of the compilation unit including this class.

Returns:
the qualified name of the package.
 o setImported
 public void setImported(ImportStatementList imps)
Only internal use by system.

Parameters:
imps - the import statements
 o getImported
 public ImportStatementList getImported()
Obtain the import statements of the compilation unit including this class.

Returns:
the import statements
 o putMetaInfo
 protected final Ptree putMetaInfo(String key,
                                   Ptree ptree)
 o putMetaInfo
 protected final String putMetaInfo(String key,
                                    String str)
 o getMetaInfoPtree
 protected static final String getMetaInfoPtree(Class clazz,
                                                String key)
 o getMetaInfoString
 protected static final String getMetaInfoString(Class clazz,
                                                 String key)
 o additionalCompilationUnits
 public CompilationUnit[] additionalCompilationUnits()
Gets the additional compilation units. This will be final method.

Returns:
the CompilationUnits newly added.
 o addCompilationUnit
 public void addCompilationUnit(CompilationUnit cu)
Adds the additional compilation unit to be generated.

Parameters:
cu - compilation unit.
 o eq
 public static final boolean eq(Ptree p,
                                Ptree q)
Tests if two ptree point one object. This is utility method.

Parameters:
p - the ptree object to test.
q - the ptree object to test.
Returns:
true if two ptree objects are same object.
 o equal
 public static final boolean equal(Ptree p,
                                   Ptree q)
Tests if two ptree objects has same contents. This is an utility method.

Parameters:
p - ptree-node object to test
q - ptree-node object to test
Returns:
true if two ptree objects has same contents
 o isIterationStatement
 public static final boolean isIterationStatement(Ptree p)
Tests if the ptree object is an instance of iteration statement classes.
Iteration statement classes are :
DoWhileStatement ForStatement WhileStatement

This is an utility method.

Parameters:
p - ptree-node object to test
Returns:
true if the specified ptree object is an instance of iteration statement classes.
 o isSelectionStatement
 public static final boolean isSelectionStatement(Ptree p)
Tests if the ptree object is an instance of selection statement classes.
Selection statement classes are :
IfStatement SwitchStatement

This is an utility method.

Parameters:
p - ptree-node object to test
Returns:
true if the specified ptree object is an instance of selection statement classes.
 o isJumpStatement
 public static final boolean isJumpStatement(Ptree p)
Tests if the ptree object is an instance of jump statement classes.
Jump statement classes are :
BreakStatement ContinueStatement ReturnStatement ThrowStatement

This is an utility method.

Parameters:
p - ptree-node object to test
Returns:
true if the specified ptree object is an instance of jump statement classes.
 o isGuardingStatement
 public static final boolean isGuardingStatement(Ptree p)
Tests if the ptree object is an instance of guarding statement classes.
Guarding statement classes are :
SynchronizedStatement TryStatement

This is an utility method.

Parameters:
p - ptree-node object to test
Returns:
true if the specified ptree object is an instance of guarding statement classes.
 o isAllocationExpression
 public static final boolean isAllocationExpression(Ptree p)
Tests if the ptree object is an instance of allocation expression classes.
Allocation expression classes are :
ConstructExpression ArrayAllocationExpression

This is an utility method.

Parameters:
p - ptree-node object to test
Returns:
true if the specified ptree object is an instance of allocation expression classes.
 o getTypeDeclaration
 public final TypeDeclaration getTypeDeclaration()
Gets the type declaration.

Returns:
the type declaration.
 o setTypeDeclaration
 public final void setTypeDeclaration(TypeDeclaration td)
Sets the type declaration.

Parameters:
td - the type declaration.
 o errorMessage
 public static void errorMessage(String str,
                                 Ptree keyword)
Shows error messages and terminates OpenJava.

 o errorMessage
 public static void errorMessage(String str)
Shows an error message and terminates OpenJava.

 o mopErrorMessage
 public static void mopErrorMessage(String str1,
                                    String str2)
Shows error messages of MOP and terminates OpenJava.

 o warningMessage
 public static void warningMessage(String str)
Shows an warning message.

 o getUserKeywords
 public String[] getUserKeywords()
Returns the user defined keywords.

 o getUserModifiers
 public String[] getUserModifiers()
Returns the user defined keywords.

 o translate
 public TypeDeclaration translate() throws PtreeException
Main method to be called by OpenJava system.

Throws: PtreeException
when exception occurs
 o initialize
 protected void initialize()
At the beginning, initialize() is once called on each metaclass. The subclasses of Class may define their own Initialize().

 o finish
 protected void finish()
finish() is called on each metaobject at the end.

 o translateTypeDeclaration
 protected TypeDeclaration translateTypeDeclaration(TypeDeclaration typedecl) throws PtreeException
Translates type declaration

Parameters:
typedecl - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateInterfaceDeclaration
 protected TypeDeclaration translateInterfaceDeclaration(InterfaceDeclaration ifacedecl) throws PtreeException
Translates interface declaration

Parameters:
ifacedecl - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateClassDeclaration
 protected TypeDeclaration translateClassDeclaration(ClassDeclaration classdecl) throws PtreeException
Translates class declaration

Parameters:
classdecl - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateMemberDeclarationList
 protected MemberDeclarationList translateMemberDeclarationList(MemberDeclarationList memlist) throws PtreeException
Translates field declaration list

Parameters:
fieldlist - translating list
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateMemberDeclaration
 protected MemberDeclaration translateMemberDeclaration(MemberDeclaration mem) throws PtreeException
Translates member declaration list node

Parameters:
mem - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateFieldDeclaration
 protected MemberDeclaration translateFieldDeclaration(FieldDeclaration fielddecl) throws PtreeException
Translates field variable declaration node

Parameters:
fieldvardecl - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateMethodDeclaration
 protected MemberDeclaration translateMethodDeclaration(MethodDeclaration methoddecl) throws PtreeException
Translates method declaration node

Parameters:
methoddecl - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateConstructorDeclaration
 protected MemberDeclaration translateConstructorDeclaration(ConstructorDeclaration constdecl) throws PtreeException
Translates constructor declaration node

Parameters:
constdecl - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateStaticInitializer
 protected MemberDeclaration translateStaticInitializer(StaticInitializer staticinit) throws PtreeException
Translates static initializer node

Parameters:
staticinit - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateInstanceInitializer
 protected MemberDeclaration translateInstanceInitializer(InstanceInitializer insinit) throws PtreeException
Translates static initializer node

Parameters:
staticinit - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateVariableDeclarator
 protected VariableDeclarator translateVariableDeclarator(VariableDeclarator vardecl) throws PtreeException
Translates variable declarator node

Parameters:
vardecl - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateVariableInitializer
 protected VariableInitializer translateVariableInitializer(VariableInitializer varinit) throws PtreeException
Translates the variable initializer node

Parameters:
varinit - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateArrayInitializer
 protected ArrayInitializer translateArrayInitializer(ArrayInitializer arrayinit) throws PtreeException
Translates the array initializer node

Parameters:
arrayinit - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateParameterList
 protected ParameterList translateParameterList(ParameterList paramlist) throws PtreeException
Translates parameter list

Parameters:
paramlist - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateParameter
 protected Parameter translateParameter(Parameter param) throws PtreeException
Translates parameter

Parameters:
param - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateTypeSpecifier
 protected TypeSpecifier translateTypeSpecifier(TypeSpecifier typespec) throws PtreeException
Translates type specifier node

Parameters:
typespec - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateClassTypeList
 protected ClassTypeList translateClassTypeList(ClassTypeList ctypelist) throws PtreeException
Translates class type list

Parameters:
ctypelist - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateTypeName
 protected TypeName translateTypeName(TypeName typename) throws PtreeException
Translates type name node

Parameters:
typename - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translatePrimitiveType
 protected PrimitiveType translatePrimitiveType(PrimitiveType ptype) throws PtreeException
Translates primitive type node

Parameters:
typename - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateClassType
 protected ClassType translateClassType(ClassType ctypename) throws PtreeException
Translates class type node

Parameters:
typename - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateQualifiedName
 protected QualifiedName translateQualifiedName(QualifiedName qname) throws PtreeException
Translates qualified name

Parameters:
qname - translating list
Returns:
translated list
Throws: PtreeException
when exception occurs
 o translateModifierList
 protected ModifierList translateModifierList(ModifierList modiflist) throws PtreeException
Translates modifier list

Parameters:
modiflist - translating list
Returns:
translated list
Throws: PtreeException
when exception occurs
 o translateModifier
 protected Modifier translateModifier(Modifier modifier) throws PtreeException
Translates modfier node

Parameters:
modfier - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateBlock
 protected Statement translateBlock(Block block) throws PtreeException
Translates block node

Parameters:
block - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateVariableDeclaration
 protected Statement translateVariableDeclaration(VariableDeclaration vardecl) throws PtreeException
Translates local variable declaration statement node.

Parameters:
vardeclstate - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateStatementList
 protected StatementList translateStatementList(StatementList stmtlist) throws PtreeException
Translates statement list

Parameters:
paramlist - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateStatement
 protected Statement translateStatement(Statement stmt) throws PtreeException
Translates statement node

Parameters:
statement - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateEmptyStatement
 protected Statement translateEmptyStatement(EmptyStatement emptystate) throws PtreeException
Translates empty statement

Parameters:
emptystate - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateLabeldStatement
 protected Statement translateLabeldStatement(LabeledStatement labelstate) throws PtreeException
Translates labeled statement node

Parameters:
labelstate - translating node.
Returns:
translated node.
Throws: PtreeException
when exception occurs
 o translateExpressionStatement
 protected Statement translateExpressionStatement(ExpressionStatement expstate) throws PtreeException
Translates expression statement node.

Parameters:
expstate - translating node.
Returns:
translated node.
Throws: PtreeException
when exception occurs
 o translateSelectionStatement
 protected Statement translateSelectionStatement(Statement selectstate) throws PtreeException
Translates selection statement node

Parameters:
selectstate - translating ndoe
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateIfStatement
 protected Statement translateIfStatement(IfStatement ifstate) throws PtreeException
Translates if statement node

Parameters:
ifstate - translating ndoe
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateSwitchStatement
 protected Statement translateSwitchStatement(SwitchStatement switchstate) throws PtreeException
Translates switch statement node

Parameters:
switchstate - translating ndoe
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateCaseGroupList
 protected CaseGroupList translateCaseGroupList(CaseGroupList cglist) throws PtreeException
Translates switch statement node

Parameters:
switchstate - translating ndoe
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateCaseGroup
 protected CaseGroup translateCaseGroup(CaseGroup cg) throws PtreeException
Translates statements after case node

Parameters:
switchstate - translating ndoe
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateIterationStatement
 protected Statement translateIterationStatement(Statement iterstate) throws PtreeException
Translates iteration node

Parameters:
iterstate - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateWhileStatement
 protected Statement translateWhileStatement(WhileStatement whilestate) throws PtreeException
Translates while statement node

Parameters:
whilestate - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateDoWhileStatement
 protected Statement translateDoWhileStatement(DoWhileStatement dostate) throws PtreeException
Translates the do-while statement node.

Parameters:
dostate - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateForStatement
 protected Statement translateForStatement(ForStatement forstate) throws PtreeException
Translates the for statement node.

Parameters:
forstate - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateJumpStatement
 protected Statement translateJumpStatement(Statement jumpstate) throws PtreeException
Translates jump statement node

Parameters:
jumpstate - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateBreakStatement
 protected Statement translateBreakStatement(BreakStatement breakstate) throws PtreeException
Translates break statement node.

Parameters:
breakstate - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateContinueStatement
 protected Statement translateContinueStatement(ContinueStatement continuestate) throws PtreeException
Translates the continue statement node.

Parameters:
continuestate - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateReturnStatement
 protected Statement translateReturnStatement(ReturnStatement returnstate) throws PtreeException
Translates return statement node

Parameters:
returnstate - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateThrowStatement
 protected Statement translateThrowStatement(ThrowStatement throwstate) throws PtreeException
Translates throw statement node

Parameters:
throwstate - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateGuardingStatement
 protected Statement translateGuardingStatement(Statement guardstate) throws PtreeException
Translates the guarding statement node.

Parameters:
guardstate - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateSynchronizedStatement
 protected Statement translateSynchronizedStatement(SynchronizedStatement syncstate) throws PtreeException
Translates synchronized statement node.

Parameters:
synctate - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateTryStatement
 protected Statement translateTryStatement(TryStatement trystate) throws PtreeException
Translates the try statement node.

Parameters:
trystate - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateCatchList
 protected CatchList translateCatchList(CatchList catchlist) throws PtreeException
Translates catch list

Parameters:
catchlist - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateCatchBlock
 protected CatchBlock translateCatchBlock(CatchBlock katch) throws PtreeException
Translates the catch block node.

Parameters:
katch - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateExpressionList
 protected ExpressionList translateExpressionList(ExpressionList exprlist) throws PtreeException
Translates the expression list.

Parameters:
exprlist - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateExpression
 protected Expression translateExpression(Expression expr) throws PtreeException
Translates the expression node.

Parameters:
expr - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateLiteral
 protected Expression translateLiteral(Literal lit) throws PtreeException
Translates the literal.

Parameters:
lit - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateUnaryExpression
 protected Expression translateUnaryExpression(UnaryExpression unary) throws PtreeException
Translates the unary expression.

Parameters:
unary - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateBinaryExpression
 protected Expression translateBinaryExpression(BinaryExpression binary) throws PtreeException
Translates the binary expression.

Parameters:
binary - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateInstanceofExpression
 protected Expression translateInstanceofExpression(InstanceofExpression insof) throws PtreeException
Translates the instanceof expression.

Parameters:
insof - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateConditionalExpression
 protected Expression translateConditionalExpression(ConditionalExpression condexpr) throws PtreeException
Translates the conditional expression.

Parameters:
condexpr - the translationg node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateAssignmentExpression
 protected Expression translateAssignmentExpression(AssignmentExpression assignment) throws PtreeException
Translates assignment expression node

Parameters:
assignment - translationg node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateCastExpression
 protected Expression translateCastExpression(CastExpression castexpr) throws PtreeException
Translates the cast expression node.

Parameters:
cast - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateAllocationExpression
 protected Expression translateAllocationExpression(Expression alloc) throws PtreeException
Translates the allocation expression node.

Parameters:
alloc - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateConstructExpression
 protected Expression translateConstructExpression(ConstructExpression construct) throws PtreeException
Translates the construct expression node.

Parameters:
construct - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateArrayAllocationExpression
 protected Expression translateArrayAllocationExpression(ArrayAllocationExpression arrayalloc) throws PtreeException
Translates the array allocation expression node.

Parameters:
arrayalloc - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateDimExprList
 protected DimExprList translateDimExprList(DimExprList delist) throws PtreeException
Translates the array dimension expr list.

Parameters:
construct - translating node
Returns:
translated node
Throws: PtreeException
when exception occurs
 o translateArrayAccess
 protected Expression translateArrayAccess(ArrayAccess arrayaccess) throws PtreeException
Translates the array access node.

Parameters:
arrayaccess - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateFieldAccess
 protected Expression translateFieldAccess(FieldAccess fieldaccess) throws PtreeException
Translates the field access node.

Parameters:
fieldaccess - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateMethodCall
 protected Expression translateMethodCall(MethodCall methodcall) throws PtreeException
Translates the mehtod call node.

Parameters:
methodcall - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateSpecialName
 protected Expression translateSpecialName(SpecialName special) throws PtreeException
Translates the special name node.

Parameters:
special - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs
 o translateIdentifier
 protected Identifier translateIdentifier(Identifier id) throws PtreeException
Translates the identifier node.

Parameters:
id - the translating node.
Returns:
the translated node.
Throws: PtreeException
when exception occurs

All Packages  Class Hierarchy  This Package  Previous  Next  Index