Interface XClass
-
- All Superinterfaces:
XElement
public interface XClass extends XElement
- Since:
- 4.3
- Author:
- [email protected]
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Class<?>
asClass()
Deprecated.String
getCanonicalName()
XClass
getComponentType()
Array component type, for arrays only.XConstructor
getDeclaredConstructor(XClass... argTypes)
Iterable<? extends XConstructor>
getDeclaredConstructors()
Iterable<? extends XField>
getDeclaredFields()
Iterable<? extends XMethod>
getDeclaredMethods()
XClass
getEnclosingClass()
XEnumConstant
getEnumConstant(String name)
Iterable<? extends XEnumConstant>
getEnumConstants()
Enum constants, for enums only.XTypeFactory
getFactory()
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.XMethod
getMethod(String methodName, XClass... argTypes)
String
getPackageName()
String
getSimpleName()
XClass
getSuperclass()
default boolean
isAbstract()
boolean
isArray()
default boolean
isAssignableTo(Class<?> c)
Should only be used with class literals.boolean
isAssignableTo(XClass c)
boolean
isEnum()
default boolean
isInterface()
boolean
isLocal()
Is it a local or anonymous class?boolean
isPrimitive()
-
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()
-
-