Package gw.internal.gosu.parser.types
Class ConstructorType
- java.lang.Object
-
- gw.lang.reflect.AbstractType
-
- gw.internal.gosu.parser.types.ConstructorType
-
- All Implemented Interfaces:
IConstructorType,IInvocableType,INonLoadableType,IType,Serializable
public class ConstructorType extends AbstractType implements IConstructorType
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected IType[]_argTypesprotected IConstructorInfo_constructorprotected IType_declaringType-
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
-
Constructor Summary
Constructors Constructor Description ConstructorType(IConstructorInfo constructor)ConstructorType(IType declaringType, IType[] argTypes)
-
Method Summary
-
Methods inherited from class gw.lang.reflect.AbstractType
getLiteralMetaType, getMetaType, getTheRef
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.IType
compile, getFunctionalInterface, getLiteralMetaType, getMetaType, getSourceFiles, isCompilable, isDynamic
-
-
-
-
Field Detail
-
_declaringType
protected IType _declaringType
-
_argTypes
protected IType[] _argTypes
-
_constructor
protected IConstructorInfo _constructor
-
-
Constructor Detail
-
ConstructorType
public ConstructorType(IConstructorInfo constructor)
-
-
Method Detail
-
getIntrinsicType
public IType getIntrinsicType()
- Returns:
- The instrinic type of this ConstructorType's return type.
-
getDeclaringType
public IType getDeclaringType()
- Specified by:
getDeclaringTypein interfaceIConstructorType
-
getParameterTypes
public IType[] getParameterTypes()
- Specified by:
getParameterTypesin interfaceIConstructorType- Specified by:
getParameterTypesin interfaceIInvocableType
-
getConstructor
public IConstructorInfo getConstructor()
- Specified by:
getConstructorin interfaceIConstructorType
-
getArgSignature
public String getArgSignature()
- Specified by:
getArgSignaturein interfaceIConstructorType
-
getParamSignature
public String getParamSignature()
- Specified by:
getParamSignaturein interfaceIInvocableType
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceIType
-
getRelativeName
public String getRelativeName()
- Specified by:
getRelativeNamein interfaceIType
-
getNamespace
public String getNamespace()
- Specified by:
getNamespacein interfaceIType
-
getTypeLoader
public ITypeLoader getTypeLoader()
- Specified by:
getTypeLoaderin interfaceIType
-
isInterface
public boolean isInterface()
- Specified by:
isInterfacein interfaceIType
-
getInterfaces
public IType[] getInterfaces()
- Specified by:
getInterfacesin interfaceIType
-
getSupertype
public IType getSupertype()
- Specified by:
getSupertypein interfaceIType
-
getEnclosingType
public IType getEnclosingType()
- Specified by:
getEnclosingTypein interfaceIType
-
getGenericType
public IType getGenericType()
- Specified by:
getGenericTypein interfaceIType
-
isParameterizedType
public boolean isParameterizedType()
- Specified by:
isParameterizedTypein interfaceIType
-
isGenericType
public boolean isGenericType()
- Specified by:
isGenericTypein interfaceIType
-
getGenericTypeVariables
public GenericTypeVariable[] getGenericTypeVariables()
- Specified by:
getGenericTypeVariablesin interfaceIType
-
getParameterizedType
public IType getParameterizedType(IType... ofType)
- Specified by:
getParameterizedTypein interfaceIType
-
getTypeParameters
public IType[] getTypeParameters()
- Specified by:
getTypeParametersin interfaceIType
-
getAllTypesInHierarchy
public Set getAllTypesInHierarchy()
- Specified by:
getAllTypesInHierarchyin interfaceIType
-
isPrimitive
public boolean isPrimitive()
- Specified by:
isPrimitivein interfaceIType
-
getArrayType
public IType getArrayType()
- Specified by:
getArrayTypein interfaceIType
-
makeArrayInstance
public Object makeArrayInstance(int iLength)
- Specified by:
makeArrayInstancein interfaceIType
-
getArrayComponent
public Object getArrayComponent(Object array, int iIndex) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
- Specified by:
getArrayComponentin interfaceIType- Throws:
IllegalArgumentExceptionArrayIndexOutOfBoundsException
-
setArrayComponent
public void setArrayComponent(Object array, int iIndex, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
- Specified by:
setArrayComponentin interfaceIType- Throws:
IllegalArgumentExceptionArrayIndexOutOfBoundsException
-
getArrayLength
public int getArrayLength(Object array) throws IllegalArgumentException
- Specified by:
getArrayLengthin interfaceIType- Throws:
IllegalArgumentException
-
getComponentType
public IType getComponentType()
- Specified by:
getComponentTypein interfaceIType
-
isAssignableFrom
public boolean isAssignableFrom(IType type)
- Specified by:
isAssignableFromin interfaceIType
-
getTypeInfo
public ITypeInfo getTypeInfo()
- Specified by:
getTypeInfoin interfaceIType
-
unloadTypeInfo
public void unloadTypeInfo()
- Specified by:
unloadTypeInfoin interfaceIType
-
readResolve
public Object readResolve() throws ObjectStreamException
- Specified by:
readResolvein interfaceIType- Throws:
ObjectStreamException
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin interfaceIType
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfaceIType
-
isDiscarded
public boolean isDiscarded()
- Specified by:
isDiscardedin interfaceIType
-
setDiscarded
public void setDiscarded(boolean bDiscarded)
- Specified by:
setDiscardedin interfaceIType
-
isCompoundType
public boolean isCompoundType()
- Specified by:
isCompoundTypein interfaceIType
-
getCompoundTypeComponents
public Set<IType> getCompoundTypeComponents()
- Specified by:
getCompoundTypeComponentsin interfaceIType
-
getParameterNames
public String[] getParameterNames()
- Specified by:
getParameterNamesin interfaceIInvocableType
-
getDefaultValueExpressions
public IExpression[] getDefaultValueExpressions()
- Specified by:
getDefaultValueExpressionsin interfaceIInvocableType
-
hasOptionalParams
public boolean hasOptionalParams()
- Specified by:
hasOptionalParamsin interfaceIInvocableType
-
-