public class FieldSignatureImpl extends java.lang.Object implements FieldSignature
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
createToString(org.aspectj.runtime.reflect.StringMaker sm) |
java.lang.Class |
getDeclaringType()
Returns a
java.lang.Class object representing the class,
interface, or aspect that declared this member. |
java.lang.String |
getDeclaringTypeName()
This is equivalent to calling getDeclaringType().getName(), but caches
the result for greater efficiency.
|
java.lang.reflect.Field |
getField() |
java.lang.Class |
getFieldType() |
int |
getModifiers()
Returns the modifiers on this signature represented as an int.
|
java.lang.String |
getName() |
void |
setLookupClassLoader(java.lang.ClassLoader loader) |
java.lang.String |
toLongString() |
java.lang.String |
toShortString() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDeclaringType, getDeclaringTypeName, getModifiers, getName, toLongString, toShortString, toString
public java.lang.Class getFieldType()
getFieldType
in interface FieldSignature
protected java.lang.String createToString(org.aspectj.runtime.reflect.StringMaker sm)
public java.lang.reflect.Field getField()
getField
in interface FieldSignature
public final java.lang.String toString()
public final java.lang.String toShortString()
toShortString
in interface Signature
public final java.lang.String toLongString()
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()
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)