org.siebengeisslein.pclass
Class PInternalMethod
java.lang.Object
org.siebengeisslein.client.Persistent
org.siebengeisslein.pclass.VersionAware
org.siebengeisslein.pclass.PInternalMethod
- All Implemented Interfaces:
- Instrumented, PMethod, VariableManager
- Direct Known Subclasses:
- PInternalConstructor
public class PInternalMethod
- extends VersionAware
- implements VariableManager, PMethod
| Methods inherited from class org.siebengeisslein.client.Persistent |
abort, clearUserLocals, clone, commit, disposeTransient, getGroup, getRef, getTransientValue, hashCode, initTransient, isWriteTransaction, joinWriteTransaction, readLock, setGroup, setTransientValue, toPersistent, toRef, writeExternal, writeLock |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
PInternalMethod
public PInternalMethod(PClass clazz,
int version)
getName
public java.lang.String getName()
- Specified by:
getName in interface PMethod
setName
public void setName(java.lang.String name)
getAccess
public int getAccess()
- Specified by:
getAccess in interface PMethod
setAccess
public void setAccess(int access)
getReturnType
public PType getReturnType()
- Specified by:
getReturnType in interface PMethod
setReturnType
public void setReturnType(PType returnType)
getStatements
public BlockStatement getStatements()
visit
public void visit(org.objectweb.asm.ClassVisitor visitor)
- Specified by:
visit in class VersionAware
getDescriptor
public java.lang.String getDescriptor()
- Specified by:
getDescriptor in interface PMethod
getPClass
public PClass getPClass()
getDeclaredParameters
public java.util.List<PDeclaredMethodParameter> getDeclaredParameters()
getVariable
public Variable getVariable(java.lang.String name)
- Specified by:
getVariable in interface VariableManager
getField
public PField getField(java.lang.String name,
PType owner)
- Specified by:
getField in interface VariableManager
addResolveListener
public void addResolveListener(VariableManager manager)
- Specified by:
addResolveListener in interface VariableManager
resolved
public void resolved(Variable variable)
- Specified by:
resolved in interface VariableManager
getTypeManager
public TypeManager getTypeManager()
getParameters
public java.util.List<PType> getParameters()
- Specified by:
getParameters in interface PMethod
isGetter
public boolean isGetter()
- Specified by:
isGetter in interface PMethod
visitInvocation
public void visitInvocation(org.objectweb.asm.MethodVisitor mv,
java.lang.String targetClass,
boolean special)
- Specified by:
visitInvocation in interface PMethod
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract in interface PMethod
setStatic
public void setStatic(boolean isStatic)
isStatic
public boolean isStatic()
- Specified by:
isStatic in interface PMethod
isFinal
public boolean isFinal()
- Specified by:
isFinal in interface PMethod
setFinal
public void setFinal(boolean isFinal)
setVisibility
public void setVisibility(int visibility)
isPublic
public boolean isPublic()
- Specified by:
isPublic in interface PMethod
getDataDirectory
public DataDirectory getDataDirectory()
- Specified by:
getDataDirectory in interface VariableManager