|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.parser.FieldMetadata
public class FieldMetadata
A Field Metadata represent a field of an implementation class. This class allow to avoid reflection to get the type and the name of a field.
Constructor Summary | |
---|---|
FieldMetadata(java.lang.String field,
java.lang.String type)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getFieldName()
|
java.lang.String |
getFieldType()
|
static java.lang.String |
getInternalPrimitiveType(java.lang.String string)
Get the internal notation for primitive type. |
static java.lang.String |
getPrimitiveTypeByClass(java.lang.Class clazz)
Get the iPOJO primitive type from the given primitive class. |
static java.lang.String |
getReflectionType(java.lang.String type)
Get the 'reflective' type of the given type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldMetadata(java.lang.String field, java.lang.String type)
field
- : field name.type
- : type of the field.Method Detail |
---|
public java.lang.String getFieldName()
public java.lang.String getFieldType()
public static java.lang.String getReflectionType(java.lang.String type)
type
- : the type to analyze to find the Java reflective type.
public static java.lang.String getInternalPrimitiveType(java.lang.String string)
string
- : String form of the type
public static java.lang.String getPrimitiveTypeByClass(java.lang.Class clazz)
clazz
- : a primitive class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |