|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.classfile.Member | +--at.dms.classfile.MethodInfo
Methods: VMS 4.6. Each method, and each (class or instance) initialization method is described by this structure.
Constructor Summary | |
MethodInfo(java.io.DataInput in,
ConstantPool cp,
boolean interfaceOnly)
Constructs a method entry from a class file stream. |
|
MethodInfo(short modifiers,
java.lang.String name,
java.lang.String type,
java.lang.String[] exceptions,
CodeInfo code,
boolean deprecated,
boolean synthetic)
Constructs a method entry. |
Method Summary | |
CodeInfo |
getCodeInfo()
Returns the code attribute associated with this method. |
java.lang.String[] |
getExceptions()
Returns the exceptions of this method. |
java.lang.String |
getName()
Returns the name of this method. |
protected int |
getParameterCount()
Computes the number of parameters. |
java.lang.String |
getSignature()
Returns the type of this method. |
boolean |
isDeprecated()
Returns true if this method is deprecated. |
boolean |
isSynthetic()
Returns true if this method is synthetic. |
void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool. |
void |
setCodeInfo(CodeInfo info)
Sets the code attribute associated with this method. |
void |
setDeprecated(boolean deprecated)
Sets the deprecated attribute of this method. |
void |
setExceptions(java.lang.String[] exceptions)
Sets the exceptions. |
void |
setName(java.lang.String name)
Sets the name of this method. |
void |
setSignature(java.lang.String type)
Returns the type of this method. |
void |
setSynthetic(boolean synthetic)
Sets whether this method is synthetic. |
void |
write(ConstantPool cp,
java.io.DataOutput out)
Write this class into the the file (out) getting data position from the constant pool. |
Methods inherited from class at.dms.classfile.Member |
getModifiers, setModifiers |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public MethodInfo(short modifiers, java.lang.String name, java.lang.String type, java.lang.String[] exceptions, CodeInfo code, boolean deprecated, boolean synthetic)
modifiers
- access permission to and properties of the methodname
- the simple name of the method (or type
- the method signatureexceptions
- the checked exceptions the method may throwcode
- the virtual machine instructions and auxiliary infosdeprecated
- is this method deprecated ?synthetic
- is this method synthesized by the compiler ?
NOTE:
VMS 4.7.5: There must be exactly one Exceptions attribute in
each method_info structure.public MethodInfo(java.io.DataInput in, ConstantPool cp, boolean interfaceOnly) throws java.io.IOException, ClassFileFormatException
in
- The stream to read from.cp
- The constant pool.interfaceOnly
- Load only the interface, not the source code.java.io.IOException
- An io problem has occuredClassFileFormatException
- Attempt to read from a bad classfile.Method Detail |
public java.lang.String getName()
getName
in class Member
public void setName(java.lang.String name)
public java.lang.String getSignature()
getSignature
in class Member
public void setSignature(java.lang.String type)
public java.lang.String[] getExceptions()
public void setExceptions(java.lang.String[] exceptions)
public boolean isDeprecated()
public void setDeprecated(boolean deprecated)
public boolean isSynthetic()
public void setSynthetic(boolean synthetic)
public CodeInfo getCodeInfo()
public void setCodeInfo(CodeInfo info)
public void resolveConstants(ConstantPool cp) throws ClassFileFormatException
cp
- The constant pool for this class.public void write(ConstantPool cp, java.io.DataOutput out) throws java.io.IOException, ClassFileFormatException
cp
- The constant pool that contain all data.out
- The file where to write this object info.java.io.IOException
- An io problem has occured.ClassFileFormatException
- Attempt to write a bad classfile.protected int getParameterCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |