Example usage for Java com.google.gwt.core.ext.typeinfo JClassType fields, constructors, methods, implement or subclass
The text is from its open source code.
JParameterizedType | asParameterizationOf(JGenericType type) |
T | findAnnotationInTypeHierarchy(Class Find an annotation on a type or on one of its superclasses or superinterfaces. |
JConstructor | findConstructor(JType[] paramTypes) |
JField | findField(String name) |
JMethod | findMethod(String name, JType[] paramTypes) |
T | getAnnotation(Class Returns an instance of the specified annotation type if it is present on this element or null if it is not. |
Annotation[] | getAnnotations() Returns all the annotations present on this element. |
JConstructor | getConstructor(JType[] paramTypes) |
JConstructor[] | getConstructors() |
Annotation[] | getDeclaredAnnotations() Returns the annotations declared directly on this element; does not include any inherited annotations. |
JClassType | getEnclosingType() |
JClassType | getErasedType() |
JField | getField(String name) |
JField[] | getFields() |
Set extends JClassType> | getFlattenedSupertypeHierarchy() Returns all of the superclasses and superinterfaces for a given type including the type itself. |
JClassType[] | getImplementedInterfaces() |
JMethod[] | getInheritableMethods() Iterates over the most-derived declaration of each unique inheritable method available in the type hierarchy of the specified type, including those found in superclasses and superinterfaces. |
JMethod | getMethod(String name, JType[] paramTypes) |
JMethod[] | getMethods() |
String | getName() |
JClassType[] | getNestedTypes() |
TypeOracle | getOracle() |
JMethod[] | getOverloads(String name) |
JMethod[] | getOverridableMethods() Iterates over the most-derived declaration of each unique overridable method available in the type hierarchy of the specified type, including those found in superclasses and superinterfaces. |
JPackage | getPackage() |
JClassType[] | getSubtypes() |
JClassType | getSuperclass() |
boolean | isAbstract() |
boolean | isAnnotationPresent(Class extends Annotation> annotationClass) Returns true if this item has an annotation of the specified type. |
boolean | isAssignableFrom(JClassType possibleSubtype) Returns true if this JClassType is assignable from the specified JClassType parameter. |
boolean | isAssignableTo(JClassType possibleSupertype) Returns true if this JClassType is assignable to the specified JClassType parameter. |
boolean | isDefaultInstantiable() Determines if the class can be constructed using a simple new operation. |
boolean | isFinal() |
boolean | isLocalType() |
boolean | isMemberType() Tests if this type is contained within another type. |
boolean | isPrivate() |
boolean | isProtected() |
boolean | isPublic() |
boolean | isStatic() |