Interface XClass
-
- All Superinterfaces:
XElement
public interface XClass extends XElement
- Since:
- 4.3
- Author:
- [email protected]
-
-
Method Summary
-
Methods inherited from interface org.infinispan.protostream.annotations.impl.types.XElement
getAnnotation, getAnnotationsByType, getModifiers, getName, getProtoDocs, 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()
-
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()
-
-