public class FieldSignatureImpl extends Object implements FieldSignature
限定符和类型 | 方法和说明 |
---|---|
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()
Returns the fully-qualified name of the declaring type.
|
Field |
getField() |
Class |
getFieldType() |
int |
getModifiers()
Returns the modifiers on this signature represented as an int.
|
String |
getName()
Returns the identifier part of this signature.
|
void |
setLookupClassLoader(ClassLoader loader) |
String |
toLongString()
Returns an extended string representation of this signature.
|
String |
toShortString()
Returns an abbreviated string representation of this signature.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDeclaringType, getDeclaringTypeName, getModifiers, getName, toLongString, toShortString, toString
public Class getFieldType()
getFieldType
在接口中 FieldSignature
protected String createToString(org.aspectj.runtime.reflect.StringMaker sm)
public Field getField()
getField
在接口中 FieldSignature
public final String toShortString()
Signature
toShortString
在接口中 Signature
public final String toLongString()
Signature
toLongString
在接口中 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
在接口中 Signature
Member.getModifiers()
,
Modifier
public String getName()
Signature
getName
在接口中 Signature
Member.getName()
public 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
在接口中 Signature
Member.getDeclaringClass()
public String getDeclaringTypeName()
Signature
getDeclaringTypeName
在接口中 Signature
public void setLookupClassLoader(ClassLoader loader)