|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.classfile.Member
at.dms.classfile.MethodInfo
public class MethodInfo
VMS 4.6: Methods. Each method, and each (class or instance) initialization method is described by this structure.
Field Summary |
---|
Constructor Summary | |
---|---|
MethodInfo(DataInput in,
ConstantPool cp,
boolean interfaceOnly)
Constructs a method entry from a class file stream. |
|
MethodInfo(short modifiers,
String name,
String type,
String[] exceptions,
CodeInfo code,
boolean deprecated,
boolean synthetic)
Constructs a method entry |
Method Summary | |
---|---|
CodeInfo |
getCodeInfo()
Returns the code attribute associated with this method |
String[] |
getExceptions()
Returns the exceptions of this method |
String |
getName()
Returns the name of this method |
protected int |
getParameterCount()
Computes the number of parameters. |
String |
getSignature()
Returns the type of the this method |
boolean |
isDeprecated()
Returns true if the field is deprecated |
boolean |
isSynthetic()
Returns true if the field 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 field |
void |
setExceptions(String[] exceptions)
Sets the exceptions |
void |
setName(String name)
Sets the name of the this method |
void |
setSignature(String type)
Returns the type of the this method |
void |
setSynthetic(boolean synthetic)
Returns true if the field is synthetic |
void |
write(ConstantPool cp,
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodInfo(short modifiers, String name, String type, String[] exceptions, CodeInfo code, boolean deprecated, boolean synthetic)
modifiers
- access permission to and properties of the methodname
- the simple name of the method (or initor
clinit)
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.4: There must be exactly one Exceptions attribute in each method_info structure.public MethodInfo(DataInput in, ConstantPool cp, boolean interfaceOnly) throws IOException, ClassFileFormatException
in
- the stream to read fromcp
- the constant poolinterfaceOnly
- load only the interface, not the source code
IOException
- an io problem has occured
ClassFileFormatException
- attempt to read a bad classfileMethod Detail |
---|
public String getName()
getName
in class Member
public void setName(String name)
public String getSignature()
getSignature
in class Member
public void setSignature(String type)
public String[] getExceptions()
public void setExceptions(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
ClassFileFormatException
public void write(ConstantPool cp, DataOutput out) throws IOException, ClassFileFormatException
cp
- the constant pool that contain all dataout
- the file where to write this object info
IOException
- an io problem has occured
ClassFileFormatException
- attempt to
write a bad classfile infoprotected int getParameterCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |