|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.classfile.PooledConstant
at.dms.classfile.ReferenceConstant
public abstract class ReferenceConstant
VMS 4.4.2 : Reference Constants. This class implements field/method/interface method reference constants.
Field Summary |
---|
Constructor Summary | |
---|---|
ReferenceConstant(byte tag,
ClassConstant clazz,
NameAndTypeConstant nametype)
Constructs a reference constant. |
|
ReferenceConstant(byte tag,
String name,
String type)
Constructs a new reference constant. |
|
ReferenceConstant(byte tag,
String owner,
String name,
String type)
Constructs a new reference constant. |
Method Summary | |
---|---|
boolean |
equals(Object o)
equals (an exact comparison) ASSERT: this.hashCode == o.hashCode ===> cast |
String |
getClassName()
Returns the name of this constant |
String |
getName()
Returns the name of this constant |
String |
getType()
Returns the name of this constant |
String |
getTypeName()
Returns the name of this constant |
int |
hashCode()
hashCode (a fast comparison) CONVENTION: return XXXXXXXXXXXX << 4 + Y with Y = ident of the type of the pooled constant |
void |
setTypeName(String name)
Returns the name of this constant |
Methods inherited from class at.dms.classfile.PooledConstant |
---|
getIndex, setIndex |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReferenceConstant(byte tag, String name, String type)
tag
- the constant type tagname
- the qualified name of the referenced objecttype
- the signature of the referenced objectpublic ReferenceConstant(byte tag, String owner, String name, String type)
tag
- the constant type tagowner
- the qualified name of the class containing the referencename
- the simple name of the referenced objecttype
- the signature of the referenced objectpublic ReferenceConstant(byte tag, ClassConstant clazz, NameAndTypeConstant nametype)
tag
- the constant type tagclazz
- the class that defines the referenced objectnametype
- the simple name and signature of the referenced objectMethod Detail |
---|
public String getName()
public String getClassName()
public String getTypeName()
public void setTypeName(String name)
public String getType()
public final int hashCode()
hashCode
in class PooledConstant
public final boolean equals(Object o)
equals
in class PooledConstant
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |