Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen.meta
Class MetaField.ArrayLengthMetaField

java.lang.Object
  extended by org.jboss.errai.codegen.meta.MetaField
      extended by org.jboss.errai.codegen.meta.MetaField.ArrayLengthMetaField
All Implemented Interfaces:
HasAnnotations, MetaClassMember
Enclosing class:
MetaField

public static class MetaField.ArrayLengthMetaField
extends MetaField

Special-purpose implementation of MetaField that represents the length property of an array.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.errai.codegen.meta.MetaField
MetaField.ArrayLengthMetaField
 
Constructor Summary
MetaField.ArrayLengthMetaField(MetaClass componentType)
           
 
Method Summary
<A extends Annotation>
A
getAnnotation(Class<A> annotation)
           
 Annotation[] getAnnotations()
          Returns the annotations present on this field.
 MetaClass getDeclaringClass()
           
 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)
           
 boolean isFinal()
           
 boolean isPrivate()
           
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isStatic()
           
 boolean isSynchronized()
           
 boolean isSynthetic()
           
 boolean isTransient()
           
 boolean isVolatile()
           
 
Methods inherited from class org.jboss.errai.codegen.meta.MetaField
asField, equals, hashCode, hashString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaField.ArrayLengthMetaField

public MetaField.ArrayLengthMetaField(MetaClass componentType)
Method Detail

getType

public MetaClass getType()
Description copied from class: MetaField
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.

Specified by:
getType in class MetaField
Returns:
a MetaClass representing a type that is assignable to this field. Never null.
See Also:
MetaField.getGenericType()

getGenericType

public MetaType getGenericType()
Description copied from class: MetaField
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. Unlike with MetaField.getType(), any type parameters on the field's type will be preserved in the returned MetaType object.

Specified by:
getGenericType in class MetaField
Returns:
The field type as declared. Never null.

getName

public String getName()
Description copied from class: MetaField
Returns this field's name without any type information or qualifiers.

Specified by:
getName in interface MetaClassMember
Specified by:
getName in class MetaField
Returns:
The field name. Never null.

getAnnotations

public Annotation[] getAnnotations()
Description copied from class: MetaField
Returns the annotations present on this field.

Specified by:
getAnnotations in interface HasAnnotations
Specified by:
getAnnotations in class MetaField
Returns:
A shared reference to the array of the annotations on this field. Returns an empty array (never null) if the field has no annotations. Callers should refrain from modifying the returned array.

getDeclaringClass

public MetaClass getDeclaringClass()

isAbstract

public boolean isAbstract()

isPublic

public boolean isPublic()

isPrivate

public boolean isPrivate()

isProtected

public boolean isProtected()

isFinal

public boolean isFinal()

isStatic

public boolean isStatic()

isTransient

public boolean isTransient()

isSynthetic

public boolean isSynthetic()

isVolatile

public boolean isVolatile()

isSynchronized

public boolean isSynchronized()

isAnnotationPresent

public boolean isAnnotationPresent(Class<? extends Annotation> annotation)

getAnnotation

public <A extends Annotation> A getAnnotation(Class<A> annotation)

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.