All Packages Class Hierarchy This Package Previous Next Index
Class openjava.mop.Metaobject
java.lang.Object
|
+----openjava.mop.Metaobject
- public class Metaobject
- extends Object
This class will be the base class of metaclassess.
and includes translation methods.
-
userKeywords
-
-
Metaobject()
- Constructor of Metaobject
-
Metaobject(TypeDeclaration, Ptree)
-
-
ErrorMessage(String, Ptree)
-
-
finish()
- finish() is called on each metaobject at the end.
-
getUserKeywords()
-
-
initialize()
- At the beginning, initialize() is once called on each metaclass.
-
MopErrorMessage(String, String)
-
-
translateExpression(Environment, NonLeaf)
-
-
translateExpression(Environment, NonLeaf, int)
-
-
translateMemberCall(Environment, NonLeaf, Ptree, Ptree, NonLeaf)
-
-
translateMemberCall(Environment, Ptree, NonLeaf)
-
-
translateModifiers(NonLeaf)
- translates modifiers (list of modifier)
-
translateSelf(NonLeaf)
- translates class definition instance of this
metaclass.
-
translateSelf(NonLeaf, NonLeaf, Leaf, Leaf, NonLeaf, NonLeaf)
- translates class definition instance of this
metaclass.
-
translateStatement(Environment, NonLeaf)
-
-
WarningMessage(String)
-
userKeywords
protected String userKeywords[]
Metaobject
public Metaobject()
- Constructor of Metaobject
Metaobject
public Metaobject(TypeDeclaration def,
Ptree meta_args)
translateSelf
public NonLeaf translateSelf(NonLeaf classdef)
- translates class definition instance of this
metaclass.
- Returns:
- translated node
translateSelf
public NonLeaf translateSelf(NonLeaf metadec,
NonLeaf modifiers,
Leaf classname,
Leaf superclazz,
NonLeaf interfaces,
NonLeaf body)
- translates class definition instance of this
metaclass.
- Returns:
- translated node
translateModifiers
protected NonLeaf translateModifiers(NonLeaf modifiers)
- translates modifiers (list of modifier)
- Returns:
- translated node
initialize
public boolean initialize()
- At the beginning, initialize() is once called on each metaclass.
The subclasses of Class may define their own Initialize().
Initialize() returns false if the initialization fails.
finish
public NonLeaf finish()
- finish() is called on each metaobject at the end. The returned
code is appended to the generated file.
translateExpression
public NonLeaf translateExpression(Environment env,
NonLeaf expr,
int type)
translateExpression
public NonLeaf translateExpression(Environment env,
NonLeaf expr)
translateStatement
public NonLeaf translateStatement(Environment env,
NonLeaf expr)
translateMemberCall
public Ptree translateMemberCall(Environment env,
NonLeaf object,
Ptree op,
Ptree member,
NonLeaf arglist)
translateMemberCall
public Ptree translateMemberCall(Environment env,
Ptree member,
NonLeaf arglist)
ErrorMessage
public static void ErrorMessage(String str,
Ptree keyword)
MopErrorMessage
public static void MopErrorMessage(String str1,
String str2)
WarningMessage
public static void WarningMessage(String str)
getUserKeywords
public String[] getUserKeywords()
All Packages Class Hierarchy This Package Previous Next Index