public interface JavaField extends TrustedInterface
constant pools
.Modifier and Type | Method and Description |
---|---|
default String |
format(String format)
Gets a string for this field formatted according to a given format specification.
|
JavaType |
getDeclaringClass()
Returns the
JavaType object representing the class or interface that declares this
field. |
default Kind |
getKind()
Returns the kind of this field.
|
String |
getName()
Returns the name of this field.
|
JavaType |
getType()
Returns a
JavaType object that identifies the declared type for this field. |
JavaType getType()
JavaType
object that identifies the declared type for this field.JavaType getDeclaringClass()
JavaType
object representing the class or interface that declares this
field.default String format(String format) throws IllegalFormatException
Specifier | Description | Example(s) ----------+------------------------------------------------------------------------------------------ 'T' | Qualified type | "int" "java.lang.String" 't' | Unqualified type | "int" "String" 'H' | Qualified holder | "java.util.Map.Entry" 'h' | Unqualified holder | "Entry" 'n' | Field name | "age" 'f' | Indicator if field is unresolved, static or instance | "unresolved" "static" "instance" '%' | A '%' character | "%"
format
- a format specificationformat
IllegalFormatException
- if an illegal specifier is encountered in format