public static class ClassTool.FieldSub extends ClassTool.Sub<ClassTool.FieldSub>
Field in an inspected Class.| Constructor and Description |
|---|
FieldSub(Field field)
FieldSub constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected AnnotatedElement |
getElement() |
String |
getJavadocRef()
Simply returns the name of the field.
|
protected int |
getModifiers() |
String |
getName() |
Object |
getStaticValue()
Returns the value of the field if and only if
it is a static field that has no access restrictions
set by the security manager.
|
protected String |
getSubType() |
Class |
getType() |
String |
getUniqueName()
Simply returns the name of the field, since field names
cannot be overloaded.
|
compareTo, equals, getAnnotations, hashCode, isAbstract, isDeprecated, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatile, toStringprotected Field field
public FieldSub(Field field)
field - inspected fieldprotected AnnotatedElement getElement()
getElement in class ClassTool.Sub<ClassTool.FieldSub>public String getName()
getName in class ClassTool.Sub<ClassTool.FieldSub>public String getUniqueName()
getUniqueName in class ClassTool.Sub<ClassTool.FieldSub>public String getJavadocRef()
getJavadocRef in class ClassTool.Sub<ClassTool.FieldSub>public Class getType()
public Object getStaticValue()
protected int getModifiers()
getModifiers in class ClassTool.Sub<ClassTool.FieldSub>protected String getSubType()
getSubType in class ClassTool.Sub<ClassTool.FieldSub>Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.