public class JClass extends JType
Modifier | Constructor and Description |
---|---|
protected |
JClass(Class<?> clazz,
ClasspathResolver resolver) |
protected |
JClass(javassist.bytecode.ClassFile classFile,
ClasspathResolver resolver) |
protected |
JClass(String name,
ClasspathResolver resolver) |
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(IntrospectionVisitor visitor) |
boolean |
equals(Object obj) |
Class<?> |
getActualClass() |
Set<JAnnotation<?>> |
getAnnotations() |
List<JConstructor> |
getConstructors() |
List<JInnerClass> |
getEnclosedClasses() |
JElement |
getEnclosingElement() |
List<JField> |
getFields() |
List<JInterface> |
getImplementedInterfaces() |
static JClass |
getJClass(Class<?> clazz,
ClasspathResolver resolver) |
static JClass |
getJClass(javassist.bytecode.ClassFile classFile,
ClasspathResolver resolver) |
static JClass |
getJClass(String name,
ClasspathResolver resolver) |
List<JMethod> |
getMethods() |
JPackage |
getPackage() |
List<JStaticInitializer> |
getStaticInitializers() |
Set<JClass> |
getSubClasses() |
JClass |
getSuperType() |
int |
hashCode() |
boolean |
isArray() |
boolean |
isInterface() |
boolean |
isPrimitive() |
getAnnotation, getClassFile, getModifier, isPrivate, isProtected, isPublic, toString
findClassFile, getName, getResolver
protected JClass(String name, ClasspathResolver resolver) throws ClasspathAccessException
ClasspathAccessException
protected JClass(Class<?> clazz, ClasspathResolver resolver) throws ClasspathAccessException
ClasspathAccessException
protected JClass(javassist.bytecode.ClassFile classFile, ClasspathResolver resolver)
public static JClass getJClass(String name, ClasspathResolver resolver) throws ClasspathAccessException
ClasspathAccessException
public static JClass getJClass(javassist.bytecode.ClassFile classFile, ClasspathResolver resolver)
public static JClass getJClass(Class<?> clazz, ClasspathResolver resolver) throws ClasspathAccessException
ClasspathAccessException
public JClass getSuperType() throws ClasspathAccessException
ClasspathAccessException
public List<JInterface> getImplementedInterfaces() throws ClasspathAccessException
ClasspathAccessException
public Class<?> getActualClass() throws ClasspathAccessException
getActualClass
in class JType
ClasspathAccessException
public Set<JClass> getSubClasses()
public List<JInnerClass> getEnclosedClasses() throws ClasspathAccessException
ClasspathAccessException
public List<JConstructor> getConstructors() throws ClasspathAccessException
ClasspathAccessException
public Set<JAnnotation<?>> getAnnotations()
getAnnotations
in class JElement
public JPackage getPackage() throws ClasspathAccessException
getPackage
in class JType
ClasspathAccessException
public List<JMethod> getMethods()
public List<JStaticInitializer> getStaticInitializers()
public void acceptVisitor(IntrospectionVisitor visitor) throws ClasspathAccessException
acceptVisitor
in class JElement
ClasspathAccessException
public JElement getEnclosingElement()
getEnclosingElement
in class JElement
public boolean isPrimitive()
public boolean isArray()
public boolean isInterface()
Copyright © 2010–2018 Jadira Systems. All rights reserved.