|
|||||||||
| Home >> All >> openjava >> [ mop overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
openjava.mop
Class OJMethodSourceCode

java.lang.Objectopenjava.mop.OJMethodImp
openjava.mop.OJMethodSourceCode
- class OJMethodSourceCode
- extends OJMethodImp
| Field Summary | |
private OJClass |
declarer
|
private openjava.ptree.MethodDeclaration |
definition
|
private Environment |
env
|
private int |
id
|
private static int |
idCounter
|
private openjava.ptree.TypeName[] |
paramtypes
|
private OJClass[] |
ptypeCache
|
| Constructor Summary | |
(package private) |
OJMethodSourceCode(Environment env,
OJClass declarer,
openjava.ptree.MethodDeclaration ptree)
|
| 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 openjava.ptree.MethodDeclaration definition
env
private Environment env
ptypeCache
private OJClass[] ptypeCache
paramtypes
private openjava.ptree.TypeName[] paramtypes
| Constructor Detail |
OJMethodSourceCode
OJMethodSourceCode(Environment env, OJClass declarer, openjava.ptree.MethodDeclaration ptree)
| Method Detail |
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).- Specified by:
toStringin classOJMethodImp
getDeclaringClass
OJClass getDeclaringClass()
- Specified by:
getDeclaringClassin classOJMethodImp
getName
java.lang.String getName()
- Specified by:
getNamein classOJMethodImp
getIdentifiableName
java.lang.String getIdentifiableName()
- Specified by:
getIdentifiableNamein classOJMethodImp
getModifiers
OJModifier getModifiers()
- Specified by:
getModifiersin classOJMethodImp
getReturnType
OJClass getReturnType()
- Specified by:
getReturnTypein classOJMethodImp
isPtypeCacheDirty
private boolean isPtypeCacheDirty(openjava.ptree.TypeName[] paramtypes)
refleshPtypeCache
private void refleshPtypeCache()
getParameterTypes
OJClass[] getParameterTypes()
- Specified by:
getParameterTypesin classOJMethodImp
getParameters
java.lang.String[] getParameters()
getExceptionTypes
OJClass[] getExceptionTypes()
- Specified by:
getExceptionTypesin classOJMethodImp
getSuffix
openjava.ptree.ParseTree getSuffix(java.lang.String keyword)
- Specified by:
getSuffixin classOJMethodImp
arrayForParameters
private final OJClass[] arrayForParameters(openjava.ptree.ParameterList params)
arrayForTypeNames
private final OJClass[] arrayForTypeNames(openjava.ptree.TypeName[] typenames)
getEnvironment
Environment getEnvironment()
- Specified by:
getEnvironmentin classOJMethodImp
invoke
java.lang.Object invoke(java.lang.Object obj, java.lang.Object[] args) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException, CannotExecuteException
- Invokes this method on the given object with the given parameters.
- Specified by:
invokein classOJMethodImp
isAlterable
boolean isAlterable()
- Specified by:
isAlterablein classOJMethodImp
isExecutable
boolean isExecutable()
- Specified by:
isExecutablein classOJMethodImp
getByteCode
java.lang.reflect.Method getByteCode() throws CannotExecuteException
- Specified by:
getByteCodein classOJMethodImp
getSourceCode
openjava.ptree.MethodDeclaration getSourceCode() throws CannotAlterException
- Specified by:
getSourceCodein classOJMethodImp
getBody
openjava.ptree.StatementList getBody() throws CannotAlterException
- Specified by:
getBodyin classOJMethodImp
setDeclaringClass
void setDeclaringClass(OJClass parent) throws CannotAlterException
- Specified by:
setDeclaringClassin classOJMethodImp
setName
final void setName(java.lang.String name) throws CannotAlterException
- Specified by:
setNamein classOJMethodImp
setModifiers
final void setModifiers(int mods)
throws CannotAlterException
- Specified by:
setModifiersin classOJMethodImp
setReturnType
final void setReturnType(OJClass type) throws CannotAlterException
- Specified by:
setReturnTypein classOJMethodImp
setExceptionTypes
final void setExceptionTypes(OJClass[] types) throws CannotAlterException
- Specified by:
setExceptionTypesin classOJMethodImp
setBody
openjava.ptree.StatementList setBody(openjava.ptree.StatementList stmts) throws CannotAlterException
- Specified by:
setBodyin classOJMethodImp
|
|||||||||
| Home >> All >> openjava >> [ mop overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC