public static class MetaField.ArrayLengthMetaField extends MetaField implements HasAnnotations
length
property of an array.MetaField.ArrayLengthMetaField
Constructor and Description |
---|
MetaField.ArrayLengthMetaField(MetaClass componentType) |
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
getAnnotation(Class<A> annotation) |
Annotation[] |
getAnnotations()
Returns the annotations present on this field.
|
MetaClass |
getDeclaringClass() |
String |
getDeclaringClassName() |
MetaType |
getGenericType()
Returns the actual unerased type of this field, which could be a MetaClass
(class, enum, interface, array, primitive, etc), a bounded or unbounded
type variable, or a wildcard.
|
String |
getName()
Returns this field's name without any type information or qualifiers.
|
MetaClass |
getType()
Returns an actual MetaClass (a class, interface, primitive type, array, or
enum, but not a type variable or a wildcard) representing an erased
type that is assignable to this field.
|
boolean |
isAbstract() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotation)
Checks if the provided annotation is present on this element (type, method,
field or parameter).
|
boolean |
isFinal() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isSynchronized() |
boolean |
isSynthetic() |
boolean |
isTransient() |
boolean |
isVolatile() |
public MetaField.ArrayLengthMetaField(MetaClass componentType)
public MetaClass getType()
MetaField
getType
in class MetaField
MetaField.getGenericType()
public MetaType getGenericType()
MetaField
MetaField.getType()
, any type
parameters on the field's type will be preserved in the returned MetaType
object.getGenericType
in class MetaField
public String getName()
MetaField
getName
in interface MetaClassMember
getName
in class MetaField
public Annotation[] getAnnotations()
MetaField
getAnnotations
in interface HasAnnotations
getAnnotations
in class MetaField
public MetaClass getDeclaringClass()
getDeclaringClass
in interface MetaClassMember
public String getDeclaringClassName()
getDeclaringClassName
in interface MetaClassMember
public boolean isAbstract()
isAbstract
in interface MetaClassMember
public boolean isPublic()
isPublic
in interface MetaClassMember
public boolean isPrivate()
isPrivate
in interface MetaClassMember
public boolean isProtected()
isProtected
in interface MetaClassMember
public boolean isFinal()
isFinal
in interface MetaClassMember
public boolean isStatic()
isStatic
in interface MetaClassMember
public boolean isTransient()
isTransient
in interface MetaClassMember
public boolean isSynthetic()
isSynthetic
in interface MetaClassMember
public boolean isVolatile()
isVolatile
in interface MetaClassMember
public boolean isSynchronized()
isSynchronized
in interface MetaClassMember
public boolean isAnnotationPresent(Class<? extends Annotation> annotation)
AbstractHasAnnotations
isAnnotationPresent
in interface HasAnnotations
isAnnotationPresent
in class AbstractHasAnnotations
annotation
- the annotation type, must not be null.public <A extends Annotation> A getAnnotation(Class<A> annotation)
getAnnotation
in interface HasAnnotations
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.