|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.GenericFunctionInfo
This data structure groups a set of multimethods all declared in the same class or generic function anchor and all belonging to the same generic function.
| Field Summary | |
private AsciiConstant |
generictype
|
private MultimethodInfo[] |
multimethods
|
private AsciiConstant |
name
|
private short |
number
|
private AsciiConstant |
topConcMethColl
|
private AsciiConstant |
type
|
| Constructor Summary | |
GenericFunctionInfo(DataInput in,
ConstantPool cp)
Constructs a generic function info structure from a class file stream |
|
GenericFunctionInfo(String name,
String type,
String generictype,
int number,
String topConcMethColl,
MultimethodInfo[] multimethods)
Constructs a generic function info structure from source. |
|
| Method Summary | |
protected void |
appendMultimethodInfo(ArrayList result)
Appends the MultimethodInfo objects for the multimethods declared locally for this generic function to result. |
String |
getGenericSignature()
|
String |
getName()
Returns the name of this generic function |
String |
getSignature()
Returns the type signature of this generic function |
protected int |
getSize()
|
void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool |
void |
setGenericSignature(String generictype)
|
void |
setName(String name)
Sets the name of this generic function |
void |
setSignature(String type)
Sets the type of this generic function |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private AsciiConstant name
private AsciiConstant type
private AsciiConstant generictype
private short number
private AsciiConstant topConcMethColl
private MultimethodInfo[] multimethods
| Constructor Detail |
public GenericFunctionInfo(String name,
String type,
String generictype,
int number,
String topConcMethColl,
MultimethodInfo[] multimethods)
name - the simple name of the methodtype - the top method's signaturenumber - the function number of the generic functiontopConcMethColl - the fully qualified name of the top method of the
generic function to which these methods belong,
or null if these methods are external or the
generic function is internalmultimethods - an array of the multimethods of this generic
function declared in the local class
public GenericFunctionInfo(DataInput in,
ConstantPool cp)
throws IOException,
ClassFileFormatException
in - the stream to read fromcp - the constant pool
IOException - an io problem has occured
ClassFileFormatException - attempt to
read a bad classfile info| Method Detail |
public String getName()
public void setName(String name)
public String getSignature()
public String getGenericSignature()
public void setSignature(String type)
public void setGenericSignature(String generictype)
protected int getSize()
protected void appendMultimethodInfo(ArrayList result)
result.
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 info
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||