Package gw.internal.gosu.parser
Class CompoundType
- java.lang.Object
-
- gw.lang.reflect.AbstractType
-
- gw.internal.gosu.parser.CompoundType
-
- All Implemented Interfaces:
ICompoundType
,INonLoadableType
,IType
,Serializable
public class CompoundType extends AbstractType implements INonLoadableType, ICompoundType
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
-
Method Summary
-
Methods inherited from class gw.lang.reflect.AbstractType
getLiteralMetaType, getMetaType, getTheRef
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.IType
compile, getFunctionalInterface, getLiteralMetaType, getMetaType, getSourceFiles, isCompilable, isDynamic
-
-
-
-
Method Detail
-
getTypes
public Set<IType> getTypes()
- Specified by:
getTypes
in interfaceICompoundType
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceIType
-
getRelativeName
public String getRelativeName()
- Specified by:
getRelativeName
in interfaceIType
-
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interfaceIType
-
getTypeLoader
public ITypeLoader getTypeLoader()
- Specified by:
getTypeLoader
in interfaceIType
-
getSupertype
public IType getSupertype()
- Specified by:
getSupertype
in interfaceIType
-
getEnclosingType
public IType getEnclosingType()
- Specified by:
getEnclosingType
in interfaceIType
-
getGenericType
public IType getGenericType()
- Specified by:
getGenericType
in interfaceIType
-
isInterface
public boolean isInterface()
- Specified by:
isInterface
in interfaceIType
-
getInterfaces
public IType[] getInterfaces()
- Specified by:
getInterfaces
in interfaceIType
-
isParameterizedType
public boolean isParameterizedType()
- Specified by:
isParameterizedType
in interfaceIType
-
isGenericType
public boolean isGenericType()
- Specified by:
isGenericType
in interfaceIType
-
getGenericTypeVariables
public IGenericTypeVariable[] getGenericTypeVariables()
- Specified by:
getGenericTypeVariables
in interfaceIType
-
getParameterizedType
public IType getParameterizedType(IType... ofType)
- Specified by:
getParameterizedType
in interfaceIType
-
getTypeParameters
public IType[] getTypeParameters()
- Specified by:
getTypeParameters
in interfaceIType
-
getAllTypesInHierarchy
public Set<? extends IType> getAllTypesInHierarchy()
- Specified by:
getAllTypesInHierarchy
in interfaceIType
-
isPrimitive
public boolean isPrimitive()
- Specified by:
isPrimitive
in interfaceIType
-
getArrayType
public IType getArrayType()
- Specified by:
getArrayType
in interfaceIType
-
makeArrayInstance
public Object makeArrayInstance(int iLength)
- Specified by:
makeArrayInstance
in interfaceIType
-
getArrayComponent
public Object getArrayComponent(Object array, int iIndex) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
- Specified by:
getArrayComponent
in interfaceIType
- Throws:
IllegalArgumentException
ArrayIndexOutOfBoundsException
-
setArrayComponent
public void setArrayComponent(Object array, int iIndex, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
- Specified by:
setArrayComponent
in interfaceIType
- Throws:
IllegalArgumentException
ArrayIndexOutOfBoundsException
-
getArrayLength
public int getArrayLength(Object array) throws IllegalArgumentException
- Specified by:
getArrayLength
in interfaceIType
- Throws:
IllegalArgumentException
-
getComponentType
public IType getComponentType()
- Specified by:
getComponentType
in interfaceIType
-
isAssignableFrom
public boolean isAssignableFrom(IType type)
- Specified by:
isAssignableFrom
in interfaceIType
-
getTypeInfo
public ITypeInfo getTypeInfo()
- Specified by:
getTypeInfo
in interfaceIType
-
unloadTypeInfo
public void unloadTypeInfo()
- Specified by:
unloadTypeInfo
in interfaceIType
-
readResolve
public Object readResolve() throws ObjectStreamException
- Specified by:
readResolve
in interfaceIType
- Throws:
ObjectStreamException
-
getModifiers
public int getModifiers()
- Specified by:
getModifiers
in interfaceIType
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in interfaceIType
-
isDiscarded
public boolean isDiscarded()
- Specified by:
isDiscarded
in interfaceIType
-
setDiscarded
public void setDiscarded(boolean bDiscarded)
- Specified by:
setDiscarded
in interfaceIType
-
isCompoundType
public boolean isCompoundType()
- Specified by:
isCompoundType
in interfaceIType
-
getCompoundTypeComponents
public Set<IType> getCompoundTypeComponents()
- Specified by:
getCompoundTypeComponents
in interfaceIType
-
-