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.
-
Class()
- Allocates a new Class instance (metaobject).
-
Class(TypeDeclaration)
- Allocates a new Class instance (metaobject).
-
Class(TypeDeclaration, Ptree)
- Allocates a new Class instance (metaobject).
-
addCompilationUnit(CompilationUnit)
- Adds the additional compilation unit to be generated.
-
additionalCompilationUnits()
- Gets the additional compilation units.
-
eq(Ptree, Ptree)
- Tests if two ptree point one object.
-
equal(Ptree, Ptree)
- Tests if two ptree objects has same contents.
-
errorMessage(String)
- Shows an error message and terminates OpenJava.
-
errorMessage(String, Ptree)
- Shows error messages and terminates OpenJava.
-
finish()
- finish() is called on each metaobject at the end.
-
getImported()
- Obtain the import statements of the compilation unit including this
class.
-
getMetaInfoPtree(Class, String)
-
-
getMetaInfoString(Class, String)
-
-
getPackage()
- Obtain the package of the compilation unit including this class.
-
getTypeDeclaration()
- Gets the type declaration.
-
getUserKeywords()
- Returns the user defined keywords.
-
getUserModifiers()
- Returns the user defined keywords.
-
initialize()
- At the beginning, initialize() is once called on each metaclass.
-
isAllocationExpression(Ptree)
- Tests if the ptree object is an instance of allocation expression
classes.
-
isGuardingStatement(Ptree)
- Tests if the ptree object is an instance of guarding statement
classes.
-
isIterationStatement(Ptree)
- Tests if the ptree object is an instance of iteration statement
classes.
-
isJumpStatement(Ptree)
- Tests if the ptree object is an instance of jump statement
classes.
-
isSelectionStatement(Ptree)
- Tests if the ptree object is an instance of selection statement
classes.
-
mopErrorMessage(String, String)
- Shows error messages of MOP and terminates OpenJava.
-
putMetaInfo(String, Ptree)
-
-
putMetaInfo(String, String)
-
-
setImported(ImportStatementList)
- Only internal use by system.
-
setPackage(QualifiedName)
- Only internal use by system.
-
setTypeDeclaration(TypeDeclaration)
- Sets the type declaration.
-
translate()
- Main method to be called by OpenJava system.
-
translateAllocationExpression(Expression)
- Translates the allocation expression node.
-
translateArrayAccess(ArrayAccess)
- Translates the array access node.
-
translateArrayAllocationExpression(ArrayAllocationExpression)
- Translates the array allocation expression node.
-
translateArrayInitializer(ArrayInitializer)
- Translates the array initializer node
-
translateAssignmentExpression(AssignmentExpression)
- Translates assignment expression node
-
translateBinaryExpression(BinaryExpression)
- Translates the binary expression.
-
translateBlock(Block)
- Translates block node
-
translateBreakStatement(BreakStatement)
- Translates break statement node.
-
translateCaseGroup(CaseGroup)
- Translates statements after case node
-
translateCaseGroupList(CaseGroupList)
- Translates switch statement node
-
translateCastExpression(CastExpression)
- Translates the cast expression node.
-
translateCatchBlock(CatchBlock)
- Translates the catch block node.
-
translateCatchList(CatchList)
- Translates catch list
-
translateClassDeclaration(ClassDeclaration)
- Translates class declaration
-
translateClassType(ClassType)
- Translates class type node
-
translateClassTypeList(ClassTypeList)
- Translates class type list
-
translateConditionalExpression(ConditionalExpression)
- Translates the conditional expression.
-
translateConstructExpression(ConstructExpression)
- Translates the construct expression node.
-
translateConstructorDeclaration(ConstructorDeclaration)
- Translates constructor declaration node
-
translateContinueStatement(ContinueStatement)
- Translates the continue statement node.
-
translateDimExprList(DimExprList)
- Translates the array dimension expr list.
-
translateDoWhileStatement(DoWhileStatement)
- Translates the do-while statement node.
-
translateEmptyStatement(EmptyStatement)
- Translates empty statement
-
translateExpression(Expression)
- Translates the expression node.
-
translateExpressionList(ExpressionList)
- Translates the expression list.
-
translateExpressionStatement(ExpressionStatement)
- Translates expression statement node.
-
translateFieldAccess(FieldAccess)
- Translates the field access node.
-
translateFieldDeclaration(FieldDeclaration)
- Translates field variable declaration node
-
translateForStatement(ForStatement)
- Translates the for statement node.
-
translateGuardingStatement(Statement)
- Translates the guarding statement node.
-
translateIdentifier(Identifier)
- Translates the identifier node.
-
translateIfStatement(IfStatement)
- Translates if statement node
-
translateInstanceInitializer(InstanceInitializer)
- Translates static initializer node
-
translateInstanceofExpression(InstanceofExpression)
- Translates the instanceof expression.
-
translateInterfaceDeclaration(InterfaceDeclaration)
- Translates interface declaration
-
translateIterationStatement(Statement)
- Translates iteration node
-
translateJumpStatement(Statement)
- Translates jump statement node
-
translateLabeldStatement(LabeledStatement)
- Translates labeled statement node
-
translateLiteral(Literal)
- Translates the literal.
-
translateMemberDeclaration(MemberDeclaration)
- Translates member declaration list node
-
translateMemberDeclarationList(MemberDeclarationList)
- Translates field declaration list
-
translateMethodCall(MethodCall)
- Translates the mehtod call node.
-
translateMethodDeclaration(MethodDeclaration)
- Translates method declaration node
-
translateModifier(Modifier)
- Translates modfier node
-
translateModifierList(ModifierList)
- Translates modifier list
-
translateParameter(Parameter)
- Translates parameter
-
translateParameterList(ParameterList)
- Translates parameter list
-
translatePrimitiveType(PrimitiveType)
- Translates primitive type node
-
translateQualifiedName(QualifiedName)
- Translates qualified name
-
translateReturnStatement(ReturnStatement)
- Translates return statement node
-
translateSelectionStatement(Statement)
- Translates selection statement node
-
translateSpecialName(SpecialName)
- Translates the special name node.
-
translateStatement(Statement)
- Translates statement node
-
translateStatementList(StatementList)
- Translates statement list
-
translateStaticInitializer(StaticInitializer)
- Translates static initializer node
-
translateSwitchStatement(SwitchStatement)
- Translates switch statement node
-
translateSynchronizedStatement(SynchronizedStatement)
- Translates synchronized statement node.
-
translateThrowStatement(ThrowStatement)
- Translates throw statement node
-
translateTryStatement(TryStatement)
- Translates the try statement node.
-
translateTypeDeclaration(TypeDeclaration)
- Translates type declaration
-
translateTypeName(TypeName)
- Translates type name node
-
translateTypeSpecifier(TypeSpecifier)
- Translates type specifier node
-
translateUnaryExpression(UnaryExpression)
- Translates the unary expression.
-
translateVariableDeclaration(VariableDeclaration)
- Translates local variable declaration statement node.
-
translateVariableDeclarator(VariableDeclarator)
- Translates variable declarator node
-
translateVariableInitializer(VariableInitializer)
- Translates the variable initializer node
-
translateWhileStatement(WhileStatement)
- Translates while statement node
-
warningMessage(String)
- Shows an warning message.
Class
public Class()
- Allocates a new Class instance (metaobject).
Class
public Class(TypeDeclaration def)
- Allocates a new Class instance (metaobject).
- Parameters:
- def - the type declaration.
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.
setPackage
public void setPackage(QualifiedName pack)
- Only internal use by system.
- Parameters:
- pack - the package name
getPackage
public QualifiedName getPackage()
- Obtain the package of the compilation unit including this class.
- Returns:
- the qualified name of the package.
setImported
public void setImported(ImportStatementList imps)
- Only internal use by system.
- Parameters:
- imps - the import statements
getImported
public ImportStatementList getImported()
- Obtain the import statements of the compilation unit including this
class.
- Returns:
- the import statements
putMetaInfo
protected final Ptree putMetaInfo(String key,
Ptree ptree)
putMetaInfo
protected final String putMetaInfo(String key,
String str)
getMetaInfoPtree
protected static final String getMetaInfoPtree(Class clazz,
String key)
getMetaInfoString
protected static final String getMetaInfoString(Class clazz,
String key)
additionalCompilationUnits
public CompilationUnit[] additionalCompilationUnits()
- Gets the additional compilation units.
This will be final method.
- Returns:
- the CompilationUnits newly added.
addCompilationUnit
public void addCompilationUnit(CompilationUnit cu)
- Adds the additional compilation unit to be generated.
- Parameters:
- cu - compilation unit.
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.
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
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.
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.
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.
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.
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.
getTypeDeclaration
public final TypeDeclaration getTypeDeclaration()
- Gets the type declaration.
- Returns:
- the type declaration.
setTypeDeclaration
public final void setTypeDeclaration(TypeDeclaration td)
- Sets the type declaration.
- Parameters:
- td - the type declaration.
errorMessage
public static void errorMessage(String str,
Ptree keyword)
- Shows error messages and terminates OpenJava.
errorMessage
public static void errorMessage(String str)
- Shows an error message and terminates OpenJava.
mopErrorMessage
public static void mopErrorMessage(String str1,
String str2)
- Shows error messages of MOP and terminates OpenJava.
warningMessage
public static void warningMessage(String str)
- Shows an warning message.
getUserKeywords
public String[] getUserKeywords()
- Returns the user defined keywords.
getUserModifiers
public String[] getUserModifiers()
- Returns the user defined keywords.
translate
public TypeDeclaration translate() throws PtreeException
- Main method to be called by OpenJava system.
- Throws: PtreeException
- when exception occurs
initialize
protected void initialize()
- At the beginning, initialize() is once called on each metaclass.
The subclasses of Class may define their own Initialize().
finish
protected void finish()
- finish() is called on each metaobject at the end.
translateTypeDeclaration
protected TypeDeclaration translateTypeDeclaration(TypeDeclaration typedecl) throws PtreeException
- Translates type declaration
- Parameters:
- typedecl - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateInterfaceDeclaration
protected TypeDeclaration translateInterfaceDeclaration(InterfaceDeclaration ifacedecl) throws PtreeException
- Translates interface declaration
- Parameters:
- ifacedecl - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateClassDeclaration
protected TypeDeclaration translateClassDeclaration(ClassDeclaration classdecl) throws PtreeException
- Translates class declaration
- Parameters:
- classdecl - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateMemberDeclarationList
protected MemberDeclarationList translateMemberDeclarationList(MemberDeclarationList memlist) throws PtreeException
- Translates field declaration list
- Parameters:
- fieldlist - translating list
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
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
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
translateMethodDeclaration
protected MemberDeclaration translateMethodDeclaration(MethodDeclaration methoddecl) throws PtreeException
- Translates method declaration node
- Parameters:
- methoddecl - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateConstructorDeclaration
protected MemberDeclaration translateConstructorDeclaration(ConstructorDeclaration constdecl) throws PtreeException
- Translates constructor declaration node
- Parameters:
- constdecl - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateStaticInitializer
protected MemberDeclaration translateStaticInitializer(StaticInitializer staticinit) throws PtreeException
- Translates static initializer node
- Parameters:
- staticinit - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateInstanceInitializer
protected MemberDeclaration translateInstanceInitializer(InstanceInitializer insinit) throws PtreeException
- Translates static initializer node
- Parameters:
- staticinit - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateVariableDeclarator
protected VariableDeclarator translateVariableDeclarator(VariableDeclarator vardecl) throws PtreeException
- Translates variable declarator node
- Parameters:
- vardecl - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
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
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
translateParameterList
protected ParameterList translateParameterList(ParameterList paramlist) throws PtreeException
- Translates parameter list
- Parameters:
- paramlist - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateParameter
protected Parameter translateParameter(Parameter param) throws PtreeException
- Translates parameter
- Parameters:
- param - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateTypeSpecifier
protected TypeSpecifier translateTypeSpecifier(TypeSpecifier typespec) throws PtreeException
- Translates type specifier node
- Parameters:
- typespec - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateClassTypeList
protected ClassTypeList translateClassTypeList(ClassTypeList ctypelist) throws PtreeException
- Translates class type list
- Parameters:
- ctypelist - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateTypeName
protected TypeName translateTypeName(TypeName typename) throws PtreeException
- Translates type name node
- Parameters:
- typename - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translatePrimitiveType
protected PrimitiveType translatePrimitiveType(PrimitiveType ptype) throws PtreeException
- Translates primitive type node
- Parameters:
- typename - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateClassType
protected ClassType translateClassType(ClassType ctypename) throws PtreeException
- Translates class type node
- Parameters:
- typename - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateQualifiedName
protected QualifiedName translateQualifiedName(QualifiedName qname) throws PtreeException
- Translates qualified name
- Parameters:
- qname - translating list
- Returns:
- translated list
- Throws: PtreeException
- when exception occurs
translateModifierList
protected ModifierList translateModifierList(ModifierList modiflist) throws PtreeException
- Translates modifier list
- Parameters:
- modiflist - translating list
- Returns:
- translated list
- Throws: PtreeException
- when exception occurs
translateModifier
protected Modifier translateModifier(Modifier modifier) throws PtreeException
- Translates modfier node
- Parameters:
- modfier - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateBlock
protected Statement translateBlock(Block block) throws PtreeException
- Translates block node
- Parameters:
- block - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
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
translateStatementList
protected StatementList translateStatementList(StatementList stmtlist) throws PtreeException
- Translates statement list
- Parameters:
- paramlist - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateStatement
protected Statement translateStatement(Statement stmt) throws PtreeException
- Translates statement node
- Parameters:
- statement - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateEmptyStatement
protected Statement translateEmptyStatement(EmptyStatement emptystate) throws PtreeException
- Translates empty statement
- Parameters:
- emptystate - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateLabeldStatement
protected Statement translateLabeldStatement(LabeledStatement labelstate) throws PtreeException
- Translates labeled statement node
- Parameters:
- labelstate - translating node.
- Returns:
- translated node.
- Throws: PtreeException
- when exception occurs
translateExpressionStatement
protected Statement translateExpressionStatement(ExpressionStatement expstate) throws PtreeException
- Translates expression statement node.
- Parameters:
- expstate - translating node.
- Returns:
- translated node.
- Throws: PtreeException
- when exception occurs
translateSelectionStatement
protected Statement translateSelectionStatement(Statement selectstate) throws PtreeException
- Translates selection statement node
- Parameters:
- selectstate - translating ndoe
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateIfStatement
protected Statement translateIfStatement(IfStatement ifstate) throws PtreeException
- Translates if statement node
- Parameters:
- ifstate - translating ndoe
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateSwitchStatement
protected Statement translateSwitchStatement(SwitchStatement switchstate) throws PtreeException
- Translates switch statement node
- Parameters:
- switchstate - translating ndoe
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateCaseGroupList
protected CaseGroupList translateCaseGroupList(CaseGroupList cglist) throws PtreeException
- Translates switch statement node
- Parameters:
- switchstate - translating ndoe
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
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
translateIterationStatement
protected Statement translateIterationStatement(Statement iterstate) throws PtreeException
- Translates iteration node
- Parameters:
- iterstate - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateWhileStatement
protected Statement translateWhileStatement(WhileStatement whilestate) throws PtreeException
- Translates while statement node
- Parameters:
- whilestate - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
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
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
translateJumpStatement
protected Statement translateJumpStatement(Statement jumpstate) throws PtreeException
- Translates jump statement node
- Parameters:
- jumpstate - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
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
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
translateReturnStatement
protected Statement translateReturnStatement(ReturnStatement returnstate) throws PtreeException
- Translates return statement node
- Parameters:
- returnstate - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
translateThrowStatement
protected Statement translateThrowStatement(ThrowStatement throwstate) throws PtreeException
- Translates throw statement node
- Parameters:
- throwstate - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
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
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
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
translateCatchList
protected CatchList translateCatchList(CatchList catchlist) throws PtreeException
- Translates catch list
- Parameters:
- catchlist - translating node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
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
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
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
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
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
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
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
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
translateAssignmentExpression
protected Expression translateAssignmentExpression(AssignmentExpression assignment) throws PtreeException
- Translates assignment expression node
- Parameters:
- assignment - translationg node
- Returns:
- translated node
- Throws: PtreeException
- when exception occurs
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
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
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
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
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
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
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
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
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
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