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