joie
Class Method
java.lang.Object
|
+--joie.Member
|
+--joie.Method
- All Implemented Interfaces:
- FilterObject
- public class Method
- extends Member
Defines a Method of a class as it is represented in the classfile.
- Version:
- 0.9
- Author:
- Geoff Cohen, Olaf Görlitz
|
Constructor Summary |
protected |
Method()
Protected to prevent from unwanted instantiation. |
|
Method(java.lang.String name,
java.lang.String desc,
Splice splice)
Creates a new Method with the given name, descriptor and code splice. |
| Methods inherited from class joie.Member |
addAttribute, assignClassInfo, getAttributes, getClassName, getDescIndex, getDescriptor, getModifiers, getName, getNameIndex, getStatus, init, readFromByteStream, rebind, resolve, serialize, serializeAppend, serializeInPlace, toString, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method
protected Method()
- Protected to prevent from unwanted instantiation.
Method
public Method(java.lang.String name,
java.lang.String desc,
Splice splice)
- Creates a new Method with the given name, descriptor and code splice.
- Parameters:
name - the method namedesc - the method descriptorsplice - the code spllice
readMethod
protected static Method readMethod(ByteStream in)
throws java.io.IOException
- Reads in a new Method from the ByteStream
- Parameters:
in - the input stream
- Returns:
- the read Method
java.io.IOException
setClassInfo
public void setClassInfo(ClassInfo cinfo)
- Description copied from class:
Member
- Sets the new ClassInfo reference.
- Overrides:
setClassInfo in class Member
- Parameters:
cinfo - the ClassInfo
getCode
public Code getCode()
setCode
public void setCode(Code code)
prefix
public void prefix(Splice splice)
prefix
public void prefix(Method meth)
suffix
public void suffix(Method meth)