public final class FieldInfo extends Object implements AnnotationTarget
Thread-Safety
This class is immutable and can be shared between threads without safe publication.Modifier and Type | Method and Description |
---|---|
static FieldInfo |
create(ClassInfo clazz,
String name,
Type type,
short flags)
Construct a new mock Field instance.
|
ClassInfo |
declaringClass()
Returns the class which declared the field
|
short |
flags()
Returns the access fields of this field.
|
String |
name()
Returns the local name of the field
|
String |
toString() |
Type |
type()
Returns the Java Type of this field.
|
public static final FieldInfo create(ClassInfo clazz, String name, Type type, short flags)
clazz
- the class declaring the fieldname
- the name of the fieldtype
- the Java field typeflags
- the field attributespublic final String name()
public final ClassInfo declaringClass()
public final Type type()
public final short flags()
Modifier
can be used on this value.Copyright © 2014 JBoss by Red Hat. All rights reserved.