Package org.aspectj.runtime.reflect
Class FieldSignatureImpl
- java.lang.Object
-
- org.aspectj.runtime.reflect.FieldSignatureImpl
-
- All Implemented Interfaces:
FieldSignature,MemberSignature,Signature
public class FieldSignatureImpl extends java.lang.Object implements FieldSignature
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringcreateToString(org.aspectj.runtime.reflect.StringMaker sm)java.lang.ClassgetDeclaringType()Returns ajava.lang.Classobject representing the class, interface, or aspect that declared this member.java.lang.StringgetDeclaringTypeName()Returns the fully-qualified name of the declaring type.java.lang.reflect.FieldgetField()java.lang.ClassgetFieldType()intgetModifiers()Returns the modifiers on this signature represented as an int.java.lang.StringgetName()Returns the identifier part of this signature.voidsetLookupClassLoader(java.lang.ClassLoader loader)java.lang.StringtoLongString()Returns an extended string representation of this signature.java.lang.StringtoShortString()Returns an abbreviated string representation of this signature.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.aspectj.lang.Signature
getDeclaringType, getDeclaringTypeName, getModifiers, getName, toLongString, toShortString, toString
-
-
-
-
Method Detail
-
getFieldType
public java.lang.Class getFieldType()
- Specified by:
getFieldTypein interfaceFieldSignature
-
createToString
protected java.lang.String createToString(org.aspectj.runtime.reflect.StringMaker sm)
-
getField
public java.lang.reflect.Field getField()
- Specified by:
getFieldin interfaceFieldSignature
-
toString
public final java.lang.String toString()
-
toShortString
public final java.lang.String toShortString()
Description copied from interface:SignatureReturns an abbreviated string representation of this signature.- Specified by:
toShortStringin interfaceSignature
-
toLongString
public final java.lang.String toLongString()
Description copied from interface:SignatureReturns an extended string representation of this signature.- Specified by:
toLongStringin interfaceSignature
-
getModifiers
public int getModifiers()
Description copied from interface:SignatureReturns the modifiers on this signature represented as an int. Use the constants and helper methods defined onjava.lang.reflect.Modifierto 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());- Specified by:
getModifiersin interfaceSignature- See Also:
Member.getModifiers(),Modifier
-
getName
public java.lang.String getName()
Description copied from interface:SignatureReturns the identifier part of this signature. For methods this will return the method name.
-
getDeclaringType
public java.lang.Class getDeclaringType()
Description copied from interface:SignatureReturns a
java.lang.Classobject 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. UseSourceLocation.getWithinType()to get the type in which the declaration occurs lexically.For consistency with
java.lang.reflect.Member, this method should have been namedgetDeclaringClass().- Specified by:
getDeclaringTypein interfaceSignature- See Also:
Member.getDeclaringClass()
-
getDeclaringTypeName
public java.lang.String getDeclaringTypeName()
Description copied from interface:SignatureReturns the fully-qualified name of the declaring type. This is equivalent to calling getDeclaringType().getName(), but caches the result for greater efficiency.- Specified by:
getDeclaringTypeNamein interfaceSignature
-
setLookupClassLoader
public void setLookupClassLoader(java.lang.ClassLoader loader)
-
-