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.


Variable Index

 o userKeywords

Constructor Index

 o Metaobject()
Constructor of Metaobject
 o Metaobject(TypeDeclaration, Ptree)

Method Index

 o ErrorMessage(String, Ptree)
 o finish()
finish() is called on each metaobject at the end.
 o getUserKeywords()
 o initialize()
At the beginning, initialize() is once called on each metaclass.
 o MopErrorMessage(String, String)
 o translateExpression(Environment, NonLeaf)
 o translateExpression(Environment, NonLeaf, int)
 o translateMemberCall(Environment, NonLeaf, Ptree, Ptree, NonLeaf)
 o translateMemberCall(Environment, Ptree, NonLeaf)
 o translateModifiers(NonLeaf)
translates modifiers (list of modifier)
 o translateSelf(NonLeaf)
translates class definition instance of this metaclass.
 o translateSelf(NonLeaf, NonLeaf, Leaf, Leaf, NonLeaf, NonLeaf)
translates class definition instance of this metaclass.
 o translateStatement(Environment, NonLeaf)
 o WarningMessage(String)

Variables

 o userKeywords
 protected String userKeywords[]

Constructors

 o Metaobject
 public Metaobject()
Constructor of Metaobject

 o Metaobject
 public Metaobject(TypeDeclaration def,
                   Ptree meta_args)

Methods

 o translateSelf
 public NonLeaf translateSelf(NonLeaf classdef)
translates class definition instance of this metaclass.

Returns:
translated node
 o 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
 o translateModifiers
 protected NonLeaf translateModifiers(NonLeaf modifiers)
translates modifiers (list of modifier)

Returns:
translated node
 o 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.

 o finish
 public NonLeaf finish()
finish() is called on each metaobject at the end. The returned code is appended to the generated file.

 o translateExpression
 public NonLeaf translateExpression(Environment env,
                                    NonLeaf expr,
                                    int type)
 o translateExpression
 public NonLeaf translateExpression(Environment env,
                                    NonLeaf expr)
 o translateStatement
 public NonLeaf translateStatement(Environment env,
                                   NonLeaf expr)
 o translateMemberCall
 public Ptree translateMemberCall(Environment env,
                                  NonLeaf object,
                                  Ptree op,
                                  Ptree member,
                                  NonLeaf arglist)
 o translateMemberCall
 public Ptree translateMemberCall(Environment env,
                                  Ptree member,
                                  NonLeaf arglist)
 o ErrorMessage
 public static void ErrorMessage(String str,
                                 Ptree keyword)
 o MopErrorMessage
 public static void MopErrorMessage(String str1,
                                    String str2)
 o WarningMessage
 public static void WarningMessage(String str)
 o getUserKeywords
 public String[] getUserKeywords()

All Packages  Class Hierarchy  This Package  Previous  Next  Index