Methods Summary |
---|
public void | countConstantReferences()
if ( name != null ) name.incReference();
if ( type != null ) type.incReference();
|
public void | externalize(ConstantPool p)
name = (UnicodeConstant)p.add( name );
type = (UnicodeConstant)p.add( type );
|
public int | getID()
if ( ! computedID ){
ID = Str2ID.sigHash.getID( name, type );
computedID = true;
}
return ID;
|
public boolean | isPrivateMember()
return ( (access & Const.ACC_PRIVATE) != 0 );
|
public boolean | isStaticMember()
return ( (access & Const.ACC_STATIC) != 0 );
|
public boolean | mayBeRenamed()Returns true if this is a member that can be safely renamed:
e.g., it's a private or package protected method, and
it's not native.
if ((access & (Const.ACC_PUBLIC | Const.ACC_PROTECTED)) == 0) {
/* it's a private or package protected method */
if ((access & Const.ACC_NATIVE) == 0) {
return true;
}
}
return false;
|
public java.lang.String | qualifiedName()
if ( resolved ){
return name.string+":"+type.string;
}else{
return Util.accessToString(access)+" "+parent.className+" [ "+nameIndex+" : "+typeIndex+" ]";
}
|
public void | resolve(ConstantObject[] table)
if ( resolved ) return;
name = (UnicodeConstant)table[nameIndex];
type = (UnicodeConstant)table[typeIndex];
resolved = true;
|
public java.lang.String | toString()
if ( resolved ){
return Util.accessToString(access)+" "+name.string+" : "+type.string;
} else {
return Util.accessToString(access)+" [ "+nameIndex+" : "+typeIndex+" ]";
}
|