Module org.glassfish.hk2.classmodel
Class FieldModelImpl
java.lang.Object
org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
org.glassfish.hk2.classmodel.reflect.impl.FieldModelImpl
- All Implemented Interfaces:
AnnotatedElement,FieldModel,Member,ParameterizedType
Implementation of a field model
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.hk2.classmodel.reflect.Member
Member.Type -
Constructor Summary
ConstructorsConstructorDescriptionFieldModelImpl(String name, TypeProxy typeProxy, ExtensibleType declaringType) -
Method Summary
Modifier and TypeMethodDescriptionReturns the declaring type of this field, which is a class.Returns the declaring type name of this field, which is a class.Returns the formal type namereturns the type of the membergetType()Returns the declared type of the fieldReturns the declared type name of the fieldTypeProxy<?>booleanisArray()booleanbooleanprotected voidprint(StringBuffer sb) voidsetAccess(int access) voidsetFormalType(String formalType) voidsetType(org.objectweb.asm.Type type) voidsetTypeProxy(TypeProxy typeProxy) Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
getAnnotation, getAnnotations, getName, isApplicationClass, setApplicationClass, shortDesc, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glassfish.hk2.classmodel.reflect.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDesc
-
Constructor Details
-
FieldModelImpl
-
-
Method Details
-
getMemberType
Description copied from interface:Memberreturns the type of the member- Specified by:
getMemberTypein interfaceMember- Returns:
- the member type as a value of @link{Member#Type}
-
getDeclaringType
Description copied from interface:FieldModelReturns the declaring type of this field, which is a class.- Specified by:
getDeclaringTypein interfaceFieldModel- Specified by:
getDeclaringTypein interfaceMember- Returns:
- the field declaring class.
-
getDeclaringTypeName
Description copied from interface:FieldModelReturns the declaring type name of this field, which is a class.- Specified by:
getDeclaringTypeNamein interfaceFieldModel- Returns:
- the field declaring class name.
-
getType
Description copied from interface:FieldModelReturns the declared type of the field- Specified by:
getTypein interfaceFieldModel- Specified by:
getTypein interfaceParameterizedType- Returns:
- the field type
-
getTypeName
Description copied from interface:FieldModelReturns the declared type name of the field- Specified by:
getTypeNamein interfaceFieldModel- Specified by:
getTypeNamein interfaceParameterizedType- Returns:
- the field type name
-
getFormalType
Description copied from interface:ParameterizedTypeReturns the formal type name- Specified by:
getFormalTypein interfaceParameterizedType- Returns:
- the formal type name
-
setFormalType
-
getTypeProxy
-
setAccess
public void setAccess(int access) -
setTypeProxy
-
setType
public void setType(org.objectweb.asm.Type type) -
print
- Overrides:
printin classAnnotatedElementImpl
-
getParameterizedTypes
- Specified by:
getParameterizedTypesin interfaceParameterizedType- Returns:
- the list of parameterized subtype
-
isFormalType
public boolean isFormalType()- Specified by:
isFormalTypein interfaceParameterizedType- Returns:
- the true value for formal type parameters and false value for parameterized type with actual type arguments.
-
isTransient
public boolean isTransient()- Specified by:
isTransientin interfaceFieldModel- Returns:
- true, if field is marked transient.
-
isArray
public boolean isArray()- Specified by:
isArrayin interfaceParameterizedType- Returns:
- true if type is array
-