Package org.aspectj.runtime.reflect
Class FieldSignatureImpl
java.lang.Object
org.aspectj.runtime.reflect.FieldSignatureImpl
- All Implemented Interfaces:
FieldSignature,MemberSignature,Signature
-
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateToString(org.aspectj.runtime.reflect.StringMaker sm) Returns ajava.lang.Classobject representing the class, interface, or aspect that declared this member.This is equivalent to calling getDeclaringType().getName(), but caches the result for greater efficiency.getField()intReturns the modifiers on this signature represented as an int.getName()voidsetLookupClassLoader(ClassLoader loader) final Stringfinal Stringfinal StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aspectj.lang.Signature
getDeclaringType, getDeclaringTypeName, getModifiers, getName, toLongString, toShortString, toString
-
Method Details
-
getFieldType
- Specified by:
getFieldTypein interfaceFieldSignature
-
createToString
-
getField
- Specified by:
getFieldin interfaceFieldSignature
-
toString
-
toShortString
- Specified by:
toShortStringin interfaceSignature- Returns:
- an abbreviated string representation of this signature.
-
toLongString
- Specified by:
toLongStringin interfaceSignature- Returns:
- an extended string representation of this signature.
-
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- Returns:
- the modifiers on this signature represented as an int
- See Also:
-
getName
-
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- Returns:
- the class, interface or aspect that declared this member
- See Also:
-
getDeclaringTypeName
Description copied from interface:SignatureThis is equivalent to calling getDeclaringType().getName(), but caches the result for greater efficiency.- Specified by:
getDeclaringTypeNamein interfaceSignature- Returns:
- the fully qualified name of the declaring type
-
setLookupClassLoader
-