openjava.mop
Class OJConstructorSourceCode

java.lang.Object
  |
  +--openjava.mop.OJConstructorImp
        |
        +--openjava.mop.OJConstructorSourceCode

class OJConstructorSourceCode
extends OJConstructorImp


Field Summary
private  OJClass declarer
           
private  ConstructorDeclaration definition
           
private  Environment env
           
private  int id
           
private static int idCounter
           
 
Constructor Summary
(package private) OJConstructorSourceCode(Environment env, OJClass declarer, ConstructorDeclaration ptree)
           
 
Method Summary
private  OJClass[] arrayForParameters(ParameterList params)
           
private  OJClass[] arrayForTypeNames(TypeName[] typenames)
           
(package private)  StatementList getBody()
           
(package private)  Constructor getByteCode()
           
(package private)  OJClass getDeclaringClass()
           
(package private)  Environment getEnvironment()
           
(package private)  OJClass[] getExceptionTypes()
           
(package private)  String getIdentifiableName()
           
(package private)  OJModifier getModifiers()
           
(package private)  String getName()
           
(package private)  String[] getParameters()
           
(package private)  OJClass[] getParameterTypes()
           
(package private)  ConstructorDeclaration getSourceCode()
           
(package private)  ParseTree getSuffix(String keyword)
           
(package private)  ConstructorInvocation getTransference()
           
(package private)  boolean isAlterable()
           
(package private)  boolean isExecutable()
           
(package private)  Object newInstance(Object[] initargs)
           
(package private)  StatementList setBody(StatementList stmts)
           
(package private)  void setDeclaringClass(OJClass parent)
           
(package private)  void setExceptionTypes(OJClass[] types)
           
(package private)  void setModifiers(int mods)
           
(package private)  ConstructorInvocation setTransference(ConstructorInvocation invocation)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

idCounter

private static int idCounter

id

private int id

declarer

private OJClass declarer

definition

private ConstructorDeclaration definition

env

private Environment env
Constructor Detail

OJConstructorSourceCode

OJConstructorSourceCode(Environment env,
                        OJClass declarer,
                        ConstructorDeclaration ptree)
Method Detail

toString

public String toString()
Specified by:
toString in class OJConstructorImp

getEnvironment

Environment getEnvironment()
Specified by:
getEnvironment in class OJConstructorImp

getDeclaringClass

OJClass getDeclaringClass()
Specified by:
getDeclaringClass in class OJConstructorImp

getName

String getName()
Specified by:
getName in class OJConstructorImp

getIdentifiableName

String getIdentifiableName()
Specified by:
getIdentifiableName in class OJConstructorImp

getModifiers

OJModifier getModifiers()
Specified by:
getModifiers in class OJConstructorImp

getParameterTypes

OJClass[] getParameterTypes()
Specified by:
getParameterTypes in class OJConstructorImp

getParameters

String[] getParameters()

getExceptionTypes

OJClass[] getExceptionTypes()
Specified by:
getExceptionTypes in class OJConstructorImp

getSuffix

ParseTree getSuffix(String keyword)
Specified by:
getSuffix in class OJConstructorImp

arrayForParameters

private final OJClass[] arrayForParameters(ParameterList params)

arrayForTypeNames

private final OJClass[] arrayForTypeNames(TypeName[] typenames)

newInstance

Object newInstance(Object[] initargs)
             throws InstantiationException,
                    IllegalAccessException,
                    IllegalArgumentException,
                    InvocationTargetException,
                    InstantiationException,
                    CannotExecuteException
Specified by:
newInstance in class OJConstructorImp
InstantiationException
IllegalAccessException
IllegalArgumentException
InvocationTargetException
CannotExecuteException

isExecutable

boolean isExecutable()
Specified by:
isExecutable in class OJConstructorImp

isAlterable

boolean isAlterable()
Specified by:
isAlterable in class OJConstructorImp

getByteCode

Constructor getByteCode()
                  throws CannotExecuteException
Specified by:
getByteCode in class OJConstructorImp
CannotExecuteException

getSourceCode

ConstructorDeclaration getSourceCode()
                               throws CannotAlterException
Specified by:
getSourceCode in class OJConstructorImp
CannotAlterException

getBody

StatementList getBody()
                throws CannotAlterException
Specified by:
getBody in class OJConstructorImp
CannotAlterException

getTransference

ConstructorInvocation getTransference()
                                throws CannotAlterException
Specified by:
getTransference in class OJConstructorImp
CannotAlterException

setDeclaringClass

void setDeclaringClass(OJClass parent)
                 throws CannotAlterException
Specified by:
setDeclaringClass in class OJConstructorImp
CannotAlterException

setModifiers

final void setModifiers(int mods)
                 throws CannotAlterException
Specified by:
setModifiers in class OJConstructorImp
CannotAlterException

setExceptionTypes

final void setExceptionTypes(OJClass[] types)
                      throws CannotAlterException
Specified by:
setExceptionTypes in class OJConstructorImp
CannotAlterException

setBody

StatementList setBody(StatementList stmts)
                throws CannotAlterException
Specified by:
setBody in class OJConstructorImp
CannotAlterException

setTransference

ConstructorInvocation setTransference(ConstructorInvocation invocation)
                                throws CannotAlterException
Specified by:
setTransference in class OJConstructorImp
CannotAlterException

SourceForge.net_Logo