Interface XClass
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Class<?>asClass()Deprecated.StringgetCanonicalName()XClassgetComponentType()Array component type, for arrays only.XConstructorgetDeclaredConstructor(XClass... argTypes)Iterable<? extends XConstructor>getDeclaredConstructors()Iterable<? extends XField>getDeclaredFields()Iterable<? extends XMethod>getDeclaredMethods()XClassgetEnclosingClass()XEnumConstantgetEnumConstant(String name)Iterable<? extends XEnumConstant>getEnumConstants()Enum constants, for enums only.XTypeFactorygetFactory()String[]getGenericInterfaceParameterTypes(Class<?> c)Gets the actual type params of an interface implemented directly by this class or all its supers.XClass[]getInterfaces()Directly implemented interfaces.XMethodgetMethod(String methodName, XClass... argTypes)StringgetPackageName()StringgetSimpleName()XClassgetSuperclass()default booleanisAbstract()booleanisArray()default booleanisAssignableTo(Class<?> c)Should only be used with class literals.booleanisAssignableTo(XClass c)booleanisEnum()default booleanisInterface()booleanisLocal()Is it a local or anonymous class?booleanisPrimitive()-
Methods inherited from interface org.infinispan.protostream.annotations.impl.types.XElement
getAnnotation, getAnnotationsByType, getDocumentation, getModifiers, getName, isFinal, isPrivate, isPublic, isStatic
-
-
-
-
Method Detail
-
getFactory
XTypeFactory getFactory()
-
asClass
@Deprecated Class<?> asClass() throws UnsupportedOperationException
Deprecated.This is the only place we can get back the java.lang.Class object and should be used very sparingly. Some implementations can throwUnsupportedOperationException.- Throws:
UnsupportedOperationException
-
getSimpleName
String getSimpleName()
-
getCanonicalName
String getCanonicalName()
-
getPackageName
String getPackageName()
-
isPrimitive
boolean isPrimitive()
-
isEnum
boolean isEnum()
-
getEnumConstants
Iterable<? extends XEnumConstant> getEnumConstants()
Enum constants, for enums only.
-
getEnumConstant
XEnumConstant getEnumConstant(String name)
-
isArray
boolean isArray()
-
getComponentType
XClass getComponentType()
Array component type, for arrays only.
-
getEnclosingClass
XClass getEnclosingClass()
-
getSuperclass
XClass getSuperclass()
-
getInterfaces
XClass[] getInterfaces()
Directly implemented interfaces.
-
getGenericInterfaceParameterTypes
String[] getGenericInterfaceParameterTypes(Class<?> c)
Gets the actual type params of an interface implemented directly by this class or all its supers.
-
isAssignableTo
boolean isAssignableTo(XClass c)
-
isAssignableTo
default boolean isAssignableTo(Class<?> c)
Should only be used with class literals. Any other type of usage should be considered suspect.
-
getDeclaredConstructor
XConstructor getDeclaredConstructor(XClass... argTypes)
-
getDeclaredConstructors
Iterable<? extends XConstructor> getDeclaredConstructors()
-
isLocal
boolean isLocal()
Is it a local or anonymous class?
-
isAbstract
default boolean isAbstract()
-
isInterface
default boolean isInterface()
-
-