Package jadex.commons
Class FieldInfo
- java.lang.Object
-
- jadex.commons.FieldInfo
-
public class FieldInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
name
protected java.lang.String name
The field name.
-
classname
protected java.lang.String classname
The declaring class name.
-
typename
protected java.lang.String typename
The typename.
-
field
protected java.lang.reflect.Field field
The field (cached).
-
inner
protected FieldInfo inner
The inner field info, if any (used only for nested sub-sub-capabilities).
-
-
Constructor Detail
-
FieldInfo
public FieldInfo()
Create a new FieldInfo.
-
FieldInfo
public FieldInfo(java.lang.reflect.Field field)
Create a new FieldInfo.
-
FieldInfo
public FieldInfo(java.lang.reflect.Field field, FieldInfo inner)
Create a new nested FieldInfo.
-
FieldInfo
public FieldInfo(java.lang.String name, java.lang.String classname)
Create a new FieldInfo.
-
-
Method Detail
-
getField
public java.lang.reflect.Field getField(java.lang.ClassLoader cl)
Get the field for the injection.- Parameters:
cl
- The classloader.fieldname
- The fieldname in case an expression string is saved in field name. If null the internal name is used.
-
getName
public java.lang.String getName()
Get the name.- Returns:
- The name.
-
setName
public void setName(java.lang.String name)
Set the name.- Parameters:
name
- The name to set.
-
getClassName
public java.lang.String getClassName()
Get the classname.- Returns:
- The classname.
-
setClassName
public void setClassName(java.lang.String classname)
Set the classname.- Parameters:
classname
- The classname to set.
-
getTypeName
public java.lang.String getTypeName()
Get the typename.- Returns:
- The typename.
-
setTypeName
public void setTypeName(java.lang.String typename)
Set the typename.- Parameters:
typename
- The typename to set.
-
getInner
public FieldInfo getInner()
Get the inner field info, if any.
-
-