|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkoala.dynamicjava.classfile.BytecodeComponent
koala.dynamicjava.classfile.AttributeOwnerComponent
koala.dynamicjava.classfile.MethodInfo
This class allows the creation of JVM bytecode method format outputs
Field Summary |
Fields inherited from class koala.dynamicjava.classfile.AttributeOwnerComponent |
accessFlags, attributes |
Fields inherited from class koala.dynamicjava.classfile.BytecodeComponent |
constantPool, nameIndex |
Constructor Summary | |
MethodInfo(ConstantPool cp,
java.lang.String rt,
java.lang.String nm,
java.lang.String[] pt)
Creates a new method info The type names must be fully qualified. |
Method Summary | |
CodeAttribute |
createCodeAttribute()
Creates the code attribute for this method |
ExceptionsAttribute |
createExceptionsAttribute()
Creates the exception attribute for this method |
boolean |
isAbstract()
Tests if the method is abstract |
boolean |
isStatic()
Tests if the method is static |
void |
setAbstract()
Sets the abstract flag for this class |
void |
setFinal()
Sets the final flag for this class |
void |
setNative()
Sets the native flag for this class |
void |
setPrivate()
Sets the private flag for this class |
void |
setProtected()
Sets the protected flag for this class |
void |
setPublic()
Sets the public flag for this class |
void |
setStatic()
Sets the static flag for this class |
void |
setStrict()
Sets the strict flag for this class |
void |
setSynchronized()
Sets the synchronized flag for this class |
void |
write(java.io.DataOutputStream out)
Writes the method info to the given output stream |
Methods inherited from class koala.dynamicjava.classfile.AttributeOwnerComponent |
setAccessFlags, setSyntheticAttribute |
Methods inherited from class koala.dynamicjava.classfile.BytecodeComponent |
getConstantPool, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MethodInfo(ConstantPool cp, java.lang.String rt, java.lang.String nm, java.lang.String[] pt)
The following strings are valid class names:
cp
- the constant pool where constants are storedrt
- the return type of this methodnm
- the name of this methodpt
- the parameters type namesMethod Detail |
public void write(java.io.DataOutputStream out) throws java.io.IOException
write
in class BytecodeComponent
java.io.IOException
public boolean isStatic()
public boolean isAbstract()
public void setPublic()
public void setPrivate()
public void setProtected()
public void setStatic()
public void setFinal()
public void setSynchronized()
public void setNative()
public void setAbstract()
public void setStrict()
public ExceptionsAttribute createExceptionsAttribute()
public CodeAttribute createCodeAttribute()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |