public class FieldInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
classname
The declaring class name.
|
protected java.lang.reflect.Field |
field
The field (cached).
|
protected FieldInfo |
inner
The inner field info, if any (used only for nested sub-sub-capabilities).
|
protected java.lang.String |
name
The field name.
|
protected java.lang.String |
typename
The typename.
|
Constructor and Description |
---|
FieldInfo()
Create a new FieldInfo.
|
FieldInfo(java.lang.reflect.Field field)
Create a new FieldInfo.
|
FieldInfo(java.lang.reflect.Field field,
FieldInfo inner)
Create a new nested FieldInfo.
|
FieldInfo(java.lang.String name,
java.lang.String classname)
Create a new FieldInfo.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName()
Get the classname.
|
java.lang.reflect.Field |
getField(java.lang.ClassLoader cl)
Get the field for the injection.
|
FieldInfo |
getInner()
Get the inner field info, if any.
|
java.lang.String |
getName()
Get the name.
|
java.lang.String |
getTypeName()
Get the typename.
|
void |
setClassName(java.lang.String classname)
Set the classname.
|
void |
setName(java.lang.String name)
Set the name.
|
void |
setTypeName(java.lang.String typename)
Set the typename.
|
protected java.lang.String name
protected java.lang.String classname
protected java.lang.String typename
protected java.lang.reflect.Field field
protected FieldInfo inner
public FieldInfo()
public FieldInfo(java.lang.reflect.Field field)
public FieldInfo(java.lang.reflect.Field field, FieldInfo inner)
public FieldInfo(java.lang.String name, java.lang.String classname)
public java.lang.reflect.Field getField(java.lang.ClassLoader cl)
cl
- The classloader.fieldname
- The fieldname in case an expression string is
saved in field name. If null the internal name is used.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public java.lang.String getClassName()
public void setClassName(java.lang.String classname)
classname
- The classname to set.public java.lang.String getTypeName()
public void setTypeName(java.lang.String typename)
typename
- The typename to set.public FieldInfo getInner()