|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aspectbench.runtime.reflect.SignatureImpl
Constructor Summary | |
protected |
SignatureImpl(int modifiers,
java.lang.String name,
java.lang.Class declaringType)
|
|
SignatureImpl(java.lang.String stringRep)
|
Method Summary | |
java.lang.String |
extractString(int n)
|
java.lang.Class |
extractType(int n)
|
java.lang.Class |
getDeclaringType()
Returns a java.lang.Class object representing the class,
interface, or aspect that declared this member. |
java.lang.String |
getDeclaringTypeName()
Returns the fully-qualified name of the declaring type. |
int |
getModifiers()
Returns the modifiers on this signature represented as an int. |
java.lang.String |
getName()
Returns the identifier part of this signature; i.e. |
void |
setLookupClassLoader(java.lang.ClassLoader loader)
|
java.lang.String |
toLongString()
Returns an extended string representation of this signature. |
java.lang.String |
toShortString()
Returns an abbreviated string representation of this signature. |
java.lang.String |
toString()
|
abstract java.lang.String |
toString(StringMaker sm)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected SignatureImpl(int modifiers, java.lang.String name, java.lang.Class declaringType)
public SignatureImpl(java.lang.String stringRep)
Method Detail |
public abstract java.lang.String toString(StringMaker sm)
public final java.lang.String toString()
toString
in interface Signature
public final java.lang.String toShortString()
Signature
toShortString
in interface Signature
public final java.lang.String toLongString()
Signature
toLongString
in interface Signature
public int getModifiers()
Signature
java.lang.reflect.Modifier
to manipulate this, i.e.
// check if this signature is public java.lang.reflect.Modifier.isPublic(sig.getModifiers()); // print out the modifiers java.lang.reflect.Modifier.toString(sig.getModifiers());
getModifiers
in interface Signature
Member.getModifiers()
,
Modifier
public java.lang.String getName()
Signature
getName
in interface Signature
Member.getName()
public java.lang.Class getDeclaringType()
Signature
Returns a java.lang.Class
object representing the class,
interface, or aspect that declared this member. For intra-member
declarations, this will be the type on which the member is declared,
not the type where the declaration is lexically written. Use
SourceLocation.getWithinType()
to get the type in
which the declaration occurs lexically.
For consistency with java.lang.reflect.Member
, this
method should have been named getDeclaringClass()
.
getDeclaringType
in interface Signature
Member.getDeclaringClass()
public java.lang.String getDeclaringTypeName()
Signature
getDeclaringTypeName
in interface Signature
public void setLookupClassLoader(java.lang.ClassLoader loader)
public java.lang.String extractString(int n)
public java.lang.Class extractType(int n)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |