Class JavaArrayClassInfo
java.lang.Object
gw.lang.reflect.java.JavaSourceElement
gw.lang.reflect.java.AbstractJavaClassInfo
gw.internal.gosu.parser.java.classinfo.JavaArrayClassInfo
- All Implemented Interfaces:
IJavaAnnotatedElement
,IJavaClassInfo
,IJavaClassType
,ITypeInfoResolver
,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface gw.lang.reflect.java.IJavaClassInfo
IJavaClassInfo.Util
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IJavaClassInfo
static final LocklessLazyVar<IJavaClassInfo[]>
Fields inherited from interface gw.lang.reflect.java.IJavaClassInfo
LOCK
Fields inherited from interface gw.lang.reflect.java.IJavaClassType
EMPTY_ARRAY, ERROR_TYPE, NULL_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActualType
(TypeVarToTypeMap typeMap) getActualType
(TypeVarToTypeMap typeMap, boolean bKeepTypeVars) getAnnotation
(Class annotationClass) Returns this element's annotation for the specified type if such an annotation is present, else null.getConstructor
(IJavaClassInfo... params) Returns all annotations that are directly present on this element.getDeclaredMethod
(String methodName, IJavaClassInfo... paramTypes) Object[]
getMethod
(String methodName, IJavaClassInfo... paramTypes) int
getName()
com.sun.source.tree.Tree
getTree()
boolean
boolean
boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) Returns true if an annotation for the specified type is present on this element, else false.boolean
isArray()
boolean
isEnum()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isPublic()
boolean
isVisibleViaFeatureDescriptor
(IScriptabilityModifier constraint) resolveImport
(String relativeName) resolveType
(String relativeName, int ignoreFlags) resolveType
(String relativeName, IJavaClassInfo whosAskin, int ignoreFlags) void
setJavaType
(IJavaType javaType) toString()
Methods inherited from class gw.lang.reflect.java.AbstractJavaClassInfo
equals, equals, hashCode, hashCode, isAssignableFrom, isAssignableFrom
Methods inherited from class gw.lang.reflect.java.JavaSourceElement
findInnerSourceType, getCompilationUnitTree, getEndPosition, getLocationInfo, getSourcePositions, getStartPosition
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface gw.lang.reflect.java.IJavaAnnotatedElement
getLocationInfo
Methods inherited from interface gw.lang.reflect.java.IJavaClassInfo
compile, getDeclaredField, getDeepestClassAtOffset, getField, isCompilable
Methods inherited from interface gw.lang.reflect.java.IJavaClassType
isAssignableFrom
-
Field Details
-
INTERFACES
-
_component
-
-
Constructor Details
-
JavaArrayClassInfo
-
-
Method Details
-
createClassDocNode
-
getArrayType
-
getComponentType
-
getDeclaredConstructors
-
getConstructor
- Throws:
NoSuchMethodException
-
getDeclaredFields
-
getDeclaredMethods
-
getDisplayName
-
getSimpleName
-
getEnclosingType
-
getEnumConstants
-
getFields
-
getGenericInterfaces
-
getGenericSuperclass
-
getInterfaces
-
getJavaType
-
setJavaType
-
getMethod
public IJavaClassMethod getMethod(String methodName, IJavaClassInfo... paramTypes) throws NoSuchMethodException - Throws:
NoSuchMethodException
-
getDeclaredMethod
public IJavaClassMethod getDeclaredMethod(String methodName, IJavaClassInfo... paramTypes) throws NoSuchMethodException - Throws:
NoSuchMethodException
-
getMethodDescriptors
-
getModifiers
public int getModifiers() -
getName
-
getNameSignature
-
getNamespace
-
getPropertyDescriptors
-
getRelativeName
-
getSuperclass
-
getTypeParameters
-
hasCustomBeanInfo
public boolean hasCustomBeanInfo() -
isAnnotation
public boolean isAnnotation() -
isArray
public boolean isArray() -
isEnum
public boolean isEnum() -
isHiddenViaFeatureDescriptor
public boolean isHiddenViaFeatureDescriptor() -
isInterface
public boolean isInterface() -
isPrimitive
public boolean isPrimitive() -
isVisibleViaFeatureDescriptor
-
newInstance
-
getAnnotation
Description copied from interface:IJavaAnnotatedElement
Returns this element's annotation for the specified type if such an annotation is present, else null.- Parameters:
annotationClass
- the Class object corresponding to the annotation type- Returns:
- this element's annotation for the specified annotation type if present on this element, else null
-
getDeclaredAnnotations
Description copied from interface:IJavaAnnotatedElement
Returns all annotations that are directly present on this element. Unlike the other methods in this interface, this method ignores inherited annotations. (Returns an array of length zero if no annotations are directly present on this element.) The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.- Returns:
- All annotations directly present on this element
-
isAnnotationPresent
Description copied from interface:IJavaAnnotatedElement
Returns true if an annotation for the specified type is present on this element, else false. This method is designed primarily for convenient access to marker annotations.- Parameters:
annotationClass
- the Class object corresponding to the annotation type- Returns:
- true if an annotation for the specified annotation type is present on this element, else false
-
getActualType
-
getActualType
-
getConcreteType
-
getDeclaredClasses
-
isPublic
public boolean isPublic() -
isProtected
public boolean isProtected() -
isInternal
public boolean isInternal() -
isPrivate
public boolean isPrivate() -
toString
-
getBackingClass
-
getSourceFileHandle
-
resolveType
-
resolveType
-
resolveImport
-
getModule
-
getTree
public com.sun.source.tree.Tree getTree()- Specified by:
getTree
in classJavaSourceElement
-
getEnclosingClass
- Specified by:
getEnclosingClass
in interfaceIJavaAnnotatedElement
- Specified by:
getEnclosingClass
in classJavaSourceElement
-
getDeclaringClass
- Overrides:
getDeclaringClass
in classJavaSourceElement
-