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:
-
Field Summary
Fields inherited from class gw.lang.reflect.DefaultArrayType
INTERFACESFields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST -
Constructor Summary
ConstructorsConstructorDescriptionTypeVariableArrayType(ITypeVariableType componentType, IJavaClassInfo componentConcreteClass, ITypeLoader typeLoader) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetArrayComponent(Object array, int iIndex) Returns the value of the indexed component in the specified array object.intgetArrayLength(Object array) Returns the length of the specified array object.inthashCode()booleanisAssignableFrom(IType type) Determines if the type represented by this intrinsic type is either the same as, or is a super-type of the type represented by the specified type parameter.makeArrayInstance(int iLength) Construct an array instance of specified length.voidsetArrayComponent(Object array, int iIndex, Object value) Sets the value of the indexed component in the specified array object.Methods inherited from class gw.lang.reflect.DefaultNonLoadableArrayType
makeArrayTypeMethods 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, unloadTypeInfoMethods inherited from class gw.lang.reflect.AbstractType
getLiteralMetaType, getMetaType, getTheRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 Details
-
TypeVariableArrayType
public TypeVariableArrayType(ITypeVariableType componentType, IJavaClassInfo componentConcreteClass, ITypeLoader typeLoader)
-
-
Method Details
-
makeArrayInstance
Description copied from interface:ITypeConstruct an array instance of specified length.- Specified by:
makeArrayInstancein interfaceIType- Overrides:
makeArrayInstancein classDefaultArrayType
-
getArrayComponent
public Object getArrayComponent(Object array, int iIndex) throws IllegalArgumentException, ArrayIndexOutOfBoundsException Description copied from interface:ITypeReturns the value of the indexed component in the specified array object.- Specified by:
getArrayComponentin interfaceIType- Overrides:
getArrayComponentin classDefaultArrayType- Parameters:
array- An array instance of this intrinsic type.iIndex- The index of the component to get.- Returns:
- The value of the indexed component in the specified array.
- Throws:
IllegalArgumentException- If the specified object is not an array.ArrayIndexOutOfBoundsException- If the specified index argument is negative, or if it is greater than or equal to the length of the specified array
-
setArrayComponent
public void setArrayComponent(Object array, int iIndex, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException Description copied from interface:ITypeSets the value of the indexed component in the specified array object.- Specified by:
setArrayComponentin interfaceIType- Overrides:
setArrayComponentin classDefaultArrayType- Parameters:
array- An array instance of this intrinsic type.iIndex- The index of the component to set.value- The new value of the indexed component.- Throws:
IllegalArgumentException- If the specified object is not an array.ArrayIndexOutOfBoundsException- If the specified index argument is negative, or if it is greater than or equal to the length of the specified array
-
getArrayLength
Description copied from interface:ITypeReturns the length of the specified array object.- Specified by:
getArrayLengthin interfaceIType- Overrides:
getArrayLengthin classDefaultArrayType- Parameters:
array- An array instance of this intrinsic type.- Returns:
- The length of the array.
- Throws:
IllegalArgumentException- If the object argument is not an array.
-
hashCode
public int hashCode() -
equals
-
isAssignableFrom
Description copied from interface:ITypeDetermines if the type represented by this intrinsic type is either the same as, or is a super-type of the type represented by the specified type parameter.- Specified by:
isAssignableFromin interfaceIType- Overrides:
isAssignableFromin classDefaultArrayType
-