public class MetadataClass extends MetadataAnnotatedElement
DEFAULT_RAW_CLASS
Constructor and Description |
---|
MetadataClass(MetadataFactory factory,
java.lang.Class cls)
Create the metadata class based on the class.
|
MetadataClass(MetadataFactory factory,
java.lang.String name)
Create the metadata class with the class name.
|
MetadataClass(MetadataFactory factory,
java.lang.String name,
boolean isLazy)
Create the metadata class with the class name.
|
Modifier and Type | Method and Description |
---|---|
void |
addEnclosedClass(MetadataClass enclosedClass)
INTERNAL:
|
void |
addField(MetadataField field)
INTERNAL:
|
void |
addInterface(java.lang.String interfaceName)
INTERNAL:
|
void |
addMethod(MetadataMethod method)
INTERNAL:
|
boolean |
equals(java.lang.Object object)
Allow comparison to Java classes and Metadata classes.
|
boolean |
extendsClass(java.lang.Class javaClass)
INTERNAL:
Return if this class is or extends, or super class extends the class.
|
boolean |
extendsClass(java.lang.String className)
INTERNAL:
Return if this class is or extends, or super class extends the class.
|
boolean |
extendsInterface(java.lang.Class javaClass)
INTERNAL:
Return if this class is or extends, or super class extends the interface.
|
boolean |
extendsInterface(java.lang.String className)
INTERNAL:
Return if this class is or extends, or super class extends the interface.
|
java.util.List<MetadataClass> |
getEnclosedClasses()
INTERNAL:
Return the list of classes defined within this metadata class.
|
MetadataField |
getField(java.lang.String name)
INTERNAL:
Return the field with the name.
|
MetadataField |
getField(java.lang.String name,
boolean checkSuperClass)
INTERNAL:
Return the field with the name.
|
java.util.Map<java.lang.String,MetadataField> |
getFields()
INTERNAL:
|
java.util.List<java.lang.String> |
getInterfaces()
INTERNAL:
|
MetadataMethod |
getMethod(java.lang.String name,
java.lang.Class[] arguments)
INTERNAL:
Return the method with the name and argument types.
|
MetadataMethod |
getMethod(java.lang.String name,
java.util.List<java.lang.String> arguments)
INTERNAL:
Return the method with the name and argument types (class names).
|
MetadataMethod |
getMethod(java.lang.String name,
java.util.List<java.lang.String> arguments,
boolean checkSuperClass)
INTERNAL:
Return the method with the name and argument types (class names).
|
MetadataMethod |
getMethod(java.lang.String name,
java.lang.String[] arguments)
INTERNAL:
Return the method with the name and argument types (class names).
|
MetadataMethod |
getMethodForPropertyName(java.lang.String propertyName)
INTERNAL:
Return the method for the given property name.
|
java.util.Map<java.lang.String,MetadataMethod> |
getMethods()
INTERNAL:
|
int |
getModifiers()
INTERNAL:
|
MetadataClass |
getSuperclass()
INTERNAL:
|
java.lang.String |
getSuperclassName()
INTERNAL:
|
java.lang.String |
getTypeName()
Return the ASM type name.
|
boolean |
isAccessible()
INTERNAL:
Return true is this class accessible to be found.
|
boolean |
isArray()
INTERNAL:
Return if this class is an array type.
|
boolean |
isCollection()
INTERNAL:
Return if this is extends Collection.
|
boolean |
isEnum()
INTERNAL:
Return if this is extends Enum.
|
boolean |
isInterface()
INTERNAL:
Return if this is an interface (super is null).
|
boolean |
isJDK()
INTERNAL:
Return if this is a JDK (java/javax) class.
|
boolean |
isLazy()
INTERNAL:
|
boolean |
isList()
INTERNAL:
Return if this is extends List.
|
boolean |
isMap()
INTERNAL:
Return if this is extends Map.
|
boolean |
isObject()
INTERNAL:
Return if this is Object class.
|
boolean |
isPrimitive()
INTERNAL:
Return if this is a primitive.
|
boolean |
isSerializable()
INTERNAL:
Return if this class extends Serializable or is an array type.
|
boolean |
isSerializableInterface()
INTENAL:
Return true is this class is the Serializable.class interface.
|
boolean |
isSet()
INTERNAL:
Return true if this extends Set.
|
boolean |
isVoid()
INTERNAL:
Return if this is the void class.
|
void |
setIsAccessible(boolean isAccessible)
INTERNAL:
|
void |
setIsJDK(boolean isJDK)
INTERNAL:
|
void |
setIsLazy(boolean isLazy)
INTERNAL:
|
void |
setModifiers(int modifiers)
INTERNAL:
|
void |
setName(java.lang.String name)
INTERNAL:
|
void |
setSuperclass(MetadataClass superclass)
INTERNAL:
|
void |
setSuperclassName(java.lang.String superclass)
INTERNAL:
|
addAnnotation, addGenericType, areAnnotationsCompatibleWithTransient, getAnnotation, getAnnotation, getAnnotation, getAnnotations, getAttributeName, getGenericType, getMapKeyClass, getName, getPrimitiveType, getRawClass, getRawClassWithGenerics, getReferenceClassFromGeneric, getType, hasDeclaredAnnotations, hashCode, isAnnotationNotPresent, isAnnotationNotPresent, isAnnotationPresent, isAnnotationPresent, isAnnotationPresent, isArray, isBasic, isBasicCollection, isBasicMap, isDerivedId, isDerivedIdClass, isElementCollection, isEmbedded, isEmbeddedId, isGenericCollectionType, isGenericType, isId, isManyToMany, isManyToOne, isOneToMany, isOneToOne, isStructure, isSupportedCollectionClass, isSupportedMapClass, isSupportedToManyCollectionClass, isTransformation, isVariableOneToOne, isVersion, setAnnotations, setAttributeName, setGenericType, setPrimitiveType, setType, toString
getLogger, getMetadataClass, getMetadataFactory, setMetadataFactory
public MetadataClass(MetadataFactory factory, java.lang.String name, boolean isLazy)
public MetadataClass(MetadataFactory factory, java.lang.String name)
public MetadataClass(MetadataFactory factory, java.lang.Class cls)
public void addEnclosedClass(MetadataClass enclosedClass)
public void addField(MetadataField field)
public void addInterface(java.lang.String interfaceName)
public void addMethod(MetadataMethod method)
public boolean equals(java.lang.Object object)
equals
in class MetadataAnnotatedElement
public boolean extendsClass(java.lang.Class javaClass)
public boolean extendsClass(java.lang.String className)
public boolean extendsInterface(java.lang.Class javaClass)
public boolean extendsInterface(java.lang.String className)
public java.util.List<MetadataClass> getEnclosedClasses()
public MetadataField getField(java.lang.String name)
public MetadataField getField(java.lang.String name, boolean checkSuperClass)
public java.util.Map<java.lang.String,MetadataField> getFields()
public java.util.List<java.lang.String> getInterfaces()
public MetadataMethod getMethod(java.lang.String name, java.lang.Class[] arguments)
public MetadataMethod getMethod(java.lang.String name, java.util.List<java.lang.String> arguments)
public MetadataMethod getMethod(java.lang.String name, java.util.List<java.lang.String> arguments, boolean checkSuperClass)
public MetadataMethod getMethod(java.lang.String name, java.lang.String[] arguments)
public MetadataMethod getMethodForPropertyName(java.lang.String propertyName)
public java.util.Map<java.lang.String,MetadataMethod> getMethods()
public int getModifiers()
getModifiers
in class MetadataAnnotatedElement
public MetadataClass getSuperclass()
public java.lang.String getSuperclassName()
public java.lang.String getTypeName()
public boolean isAccessible()
public boolean isArray()
public boolean isCollection()
public boolean isEnum()
public boolean isInterface()
public boolean isJDK()
public boolean isLazy()
public boolean isList()
public boolean isMap()
public boolean isObject()
public boolean isPrimitive()
public boolean isSerializable()
public boolean isSerializableInterface()
public boolean isSet()
public boolean isVoid()
public void setIsAccessible(boolean isAccessible)
public void setIsJDK(boolean isJDK)
public void setIsLazy(boolean isLazy)
public void setModifiers(int modifiers)
setModifiers
in class MetadataAnnotatedElement
public void setName(java.lang.String name)
setName
in class MetadataAnnotatedElement
public void setSuperclass(MetadataClass superclass)
public void setSuperclassName(java.lang.String superclass)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference