openjava.mop
Class OJConstructorSourceCode
java.lang.Object
|
+--openjava.mop.OJConstructorImp
|
+--openjava.mop.OJConstructorSourceCode
- class OJConstructorSourceCode
- extends OJConstructorImp
idCounter
private static int idCounter
id
private int id
declarer
private OJClass declarer
definition
private ConstructorDeclaration definition
env
private Environment env
OJConstructorSourceCode
OJConstructorSourceCode(Environment env,
OJClass declarer,
ConstructorDeclaration ptree)
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