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
public class JavaArrayClassInfo extends AbstractJavaClassInfo
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface gw.lang.reflect.java.IJavaClassInfo
IJavaClassInfo.Util
-
-
Field Summary
Fields Modifier and Type Field Description static LocklessLazyVar<IJavaClassInfo[]>
INTERFACES
-
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 Constructor Description JavaArrayClassInfo(IJavaClassInfo component)
-
Method Summary
-
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 Detail
-
INTERFACES
public static final LocklessLazyVar<IJavaClassInfo[]> INTERFACES
-
-
Constructor Detail
-
JavaArrayClassInfo
public JavaArrayClassInfo(IJavaClassInfo component)
-
-
Method Detail
-
createClassDocNode
public IClassDocNode createClassDocNode()
-
getArrayType
public IJavaClassInfo getArrayType()
-
getComponentType
public IJavaClassInfo getComponentType()
-
getDeclaredConstructors
public IJavaClassConstructor[] getDeclaredConstructors()
-
getConstructor
public IJavaClassConstructor getConstructor(IJavaClassInfo... params) throws NoSuchMethodException
- Throws:
NoSuchMethodException
-
getDeclaredFields
public IJavaClassField[] getDeclaredFields()
-
getDeclaredMethods
public IJavaClassMethod[] getDeclaredMethods()
-
getDisplayName
public String getDisplayName()
-
getSimpleName
public String getSimpleName()
-
getEnclosingType
public IType getEnclosingType()
-
getEnumConstants
public Object[] getEnumConstants()
-
getFields
public IJavaClassField[] getFields()
-
getGenericInterfaces
public IJavaClassType[] getGenericInterfaces()
-
getGenericSuperclass
public IJavaClassType getGenericSuperclass()
-
getInterfaces
public IJavaClassInfo[] getInterfaces()
-
getJavaType
public IType getJavaType()
-
setJavaType
public void setJavaType(IJavaType javaType)
-
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
public IJavaMethodDescriptor[] getMethodDescriptors()
-
getModifiers
public int getModifiers()
-
getName
public String getName()
-
getNameSignature
public String getNameSignature()
-
getNamespace
public String getNamespace()
-
getPropertyDescriptors
public IJavaPropertyDescriptor[] getPropertyDescriptors()
-
getRelativeName
public String getRelativeName()
-
getSuperclass
public IJavaClassInfo getSuperclass()
-
getTypeParameters
public IJavaClassTypeVariable[] 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
public boolean isVisibleViaFeatureDescriptor(IScriptabilityModifier constraint)
-
newInstance
public Object newInstance() throws InstantiationException, IllegalAccessException
-
getAnnotation
public IAnnotationInfo getAnnotation(Class annotationClass)
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
public IAnnotationInfo[] 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
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
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
public IType getActualType(TypeVarToTypeMap typeMap)
-
getActualType
public IType getActualType(TypeVarToTypeMap typeMap, boolean bKeepTypeVars)
-
getConcreteType
public IJavaClassType getConcreteType()
-
getDeclaredClasses
public IJavaClassInfo[] getDeclaredClasses()
-
isPublic
public boolean isPublic()
-
isProtected
public boolean isProtected()
-
isInternal
public boolean isInternal()
-
isPrivate
public boolean isPrivate()
-
getBackingClass
public Class getBackingClass()
-
getSourceFileHandle
public ISourceFileHandle getSourceFileHandle()
-
resolveType
public IJavaClassType resolveType(String relativeName, int ignoreFlags)
-
resolveType
public IJavaClassType resolveType(String relativeName, IJavaClassInfo whosAskin, int ignoreFlags)
-
resolveImport
public IJavaClassType resolveImport(String relativeName)
-
getModule
public IModule getModule()
-
getTree
public com.sun.source.tree.Tree getTree()
- Specified by:
getTree
in classJavaSourceElement
-
getEnclosingClass
public IJavaClassInfo getEnclosingClass()
- Specified by:
getEnclosingClass
in interfaceIJavaAnnotatedElement
- Specified by:
getEnclosingClass
in classJavaSourceElement
-
getDeclaringClass
public IJavaClassInfo getDeclaringClass()
- Overrides:
getDeclaringClass
in classJavaSourceElement
-
-