|
||||||||||
| 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.NameAndTypeConstant
public class NameAndTypeConstant
This constant represent a name and a type in the contant pool
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
NameAndTypeConstant(AsciiConstant name,
AsciiConstant type)
Constructs a name/type constant pool entry. |
|
NameAndTypeConstant(String name,
String type)
Constructs a name/type constant pool entry. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
equals (an exact comparison) ASSERT: this.hashCode == o.hashCode ===> cast |
String |
getName()
Returns the name of this constant |
String |
getType()
Returns the the type 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 |
setName(String name)
Sets 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 NameAndTypeConstant(String name,
String type)
name - the name of the symboltype - the signature of the symbol
public NameAndTypeConstant(AsciiConstant name,
AsciiConstant type)
name - the name of the symboltype - the signature of the symbol| Method Detail |
|---|
public String getName()
public void setName(String name)
public String getType()
public final int hashCode()
hashCode in class PooledConstantpublic 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 | |||||||||