Package gw.internal.gosu.parser
Class TypeVariableArrayType
- java.lang.Object
-
- gw.lang.reflect.AbstractType
-
- gw.lang.reflect.DefaultArrayType
-
- gw.lang.reflect.DefaultNonLoadableArrayType
-
- gw.internal.gosu.parser.TypeVariableArrayType
-
- All Implemented Interfaces:
IDefaultArrayType,IEnhanceableType,IHasJavaClass,INonLoadableType,IType,ITypeVariableArrayType,Serializable
public class TypeVariableArrayType extends DefaultNonLoadableArrayType implements ITypeVariableArrayType, IEnhanceableType
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class gw.lang.reflect.DefaultArrayType
INTERFACES
-
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
-
Constructor Summary
Constructors Constructor Description TypeVariableArrayType(ITypeVariableType componentType, IJavaClassInfo componentConcreteClass, ITypeLoader typeLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ObjectgetArrayComponent(Object array, int iIndex)intgetArrayLength(Object array)inthashCode()booleanisAssignableFrom(IType type)ObjectmakeArrayInstance(int iLength)voidsetArrayComponent(Object array, int iIndex, Object value)-
Methods inherited from class gw.lang.reflect.DefaultNonLoadableArrayType
makeArrayType
-
Methods inherited from class gw.lang.reflect.DefaultArrayType
getAllTypesInHierarchy, getArrayType, getBackingClass, getComponentType, getCompoundTypeComponents, getConcreteClass, getDisplayName, getEnclosingType, getGenericType, getGenericTypeVariables, getInterfaces, getModifiers, getName, getNamespace, getParameterizedType, getRelativeName, getSupertype, getThisRef, getTypeInfo, getTypeLoader, getTypeParameters, isAbstract, isArray, isCompoundType, isDiscarded, isEnum, isFinal, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, readResolve, setDiscarded, toString, unloadTypeInfo
-
Methods inherited from class gw.lang.reflect.AbstractType
getLiteralMetaType, getMetaType, getTheRef
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.IType
compile, getAllTypesInHierarchy, getArrayType, getComponentType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getFunctionalInterface, getGenericType, getGenericTypeVariables, getInterfaces, getLiteralMetaType, getMetaType, getModifiers, getName, getNamespace, getParameterizedType, getRelativeName, getSourceFiles, getSupertype, getTypeInfo, getTypeLoader, getTypeParameters, isAbstract, isArray, isCompilable, isCompoundType, isDiscarded, isDynamic, isEnum, isFinal, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, readResolve, setDiscarded, unloadTypeInfo
-
-
-
-
Constructor Detail
-
TypeVariableArrayType
public TypeVariableArrayType(ITypeVariableType componentType, IJavaClassInfo componentConcreteClass, ITypeLoader typeLoader)
-
-
Method Detail
-
makeArrayInstance
public Object makeArrayInstance(int iLength)
- Specified by:
makeArrayInstancein interfaceIType- Overrides:
makeArrayInstancein classDefaultArrayType
-
getArrayComponent
public Object getArrayComponent(Object array, int iIndex) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
- Specified by:
getArrayComponentin interfaceIType- Overrides:
getArrayComponentin classDefaultArrayType- Throws:
IllegalArgumentExceptionArrayIndexOutOfBoundsException
-
setArrayComponent
public void setArrayComponent(Object array, int iIndex, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
- Specified by:
setArrayComponentin interfaceIType- Overrides:
setArrayComponentin classDefaultArrayType- Throws:
IllegalArgumentExceptionArrayIndexOutOfBoundsException
-
getArrayLength
public int getArrayLength(Object array) throws IllegalArgumentException
- Specified by:
getArrayLengthin interfaceIType- Overrides:
getArrayLengthin classDefaultArrayType- Throws:
IllegalArgumentException
-
isAssignableFrom
public boolean isAssignableFrom(IType type)
- Specified by:
isAssignableFromin interfaceIType- Overrides:
isAssignableFromin classDefaultArrayType
-
-