Class BlockType
- java.lang.Object
-
- gw.lang.reflect.AbstractType
-
- gw.lang.reflect.FunctionType
-
- gw.internal.gosu.parser.expressions.BlockType
-
- All Implemented Interfaces:
IBlockType,IFunctionType,IGenericMethodInfo,IInvocableType,INonLoadableType,IType,Serializable
public class BlockType extends FunctionType implements IBlockType
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class gw.lang.reflect.FunctionType
_allTypesInHierarchy
-
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanareReturnTypesAssignable(FunctionType that)protected voidcopyFields(FunctionType source)booleanequals(Object o)IExpression[]getDefaultValueExpressions()StringgetName()String[]getParameterNames()StringgetRelativeName()StringgetRelativeNameSansBlock()StringgetRelativeParamSignature(boolean bSansBlock)booleanhasOptionalParams()ITypenewInstance(IType[] paramTypes, IType returnType)FunctionTypeparameterize(FunctionType source, TypeVarToTypeMap actualParamByVarName, boolean bKeepTypeVars)-
Methods inherited from class gw.lang.reflect.FunctionType
areEnclosingTypesEqual, areParamsCompatible, areParamsCompatible, areSameTypes, findContravariantParams, getAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getComponentType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getGenericType, getGenericTypeVariables, getInterfaces, getIntrinsicType, getMethodInfo, getMethodOrConstructorInfo, getModifiers, getNamespace, getOwningParameterizedType, getParameterizedParameterTypes, getParameterizedParameterTypes2, getParameterizedReturnType, getParameterizedType, getParameterTypes, getParamSignature, getParamSignatureForCurrentModule, getParamTypeNameFromJavaBackedType, getReturnType, getRuntimeType, getScriptPart, getSupertype, getTypeInfo, getTypeLoader, getTypeParameters, getTypeVariables, hashCode, inferParameterizedTypeFromArgTypesAndContextType, inferTypeParametersFromArgumentTypes, inferTypeParametersFromArgumentTypes2, isAbstract, isArray, isAssignableFrom, isAssignableFrom, isCompoundType, isDiscarded, isEnum, isFinal, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, makeArrayInstance, readResolve, setArgumentTypes, setArrayComponent, setDiscarded, setEnclosingType, setModifiers, setRetType, setScriptPart, 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.IFunctionType
areParamsCompatible, getMethodInfo, getMethodOrConstructorInfo, getParameterTypes, getParamSignature, getParamSignatureForCurrentModule, getReturnType, getScriptPart, inferParameterizedTypeFromArgTypesAndContextType, isAssignableFrom
-
Methods inherited from interface gw.lang.reflect.IGenericMethodInfo
getParameterizedParameterTypes, getParameterizedParameterTypes2, getParameterizedReturnType, getTypeVariables, inferTypeParametersFromArgumentTypes, inferTypeParametersFromArgumentTypes2
-
Methods inherited from interface gw.lang.reflect.IType
compile, getAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getComponentType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getFunctionalInterface, getGenericType, getGenericTypeVariables, getInterfaces, getLiteralMetaType, getMetaType, getModifiers, getNamespace, getParameterizedType, getSourceFiles, getSupertype, getTypeInfo, getTypeLoader, getTypeParameters, isAbstract, isArray, isAssignableFrom, isCompilable, isCompoundType, isDiscarded, isDynamic, isEnum, isFinal, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, makeArrayInstance, readResolve, setArrayComponent, setDiscarded, unloadTypeInfo
-
-
-
-
Constructor Detail
-
BlockType
public BlockType(IType returnType, IType[] iIntrinsicTypes, List<String> argNames, List<IExpression> defValues)
-
BlockType
public BlockType(IType returnType, IType[] iIntrinsicTypes, String[] argNames, IExpression[] defValues)
-
-
Method Detail
-
copyFields
protected void copyFields(FunctionType source)
- Overrides:
copyFieldsin classFunctionType
-
parameterize
public FunctionType parameterize(FunctionType source, TypeVarToTypeMap actualParamByVarName, boolean bKeepTypeVars)
- Overrides:
parameterizein classFunctionType
-
getName
public String getName()
- Specified by:
getNamein interfaceIType- Overrides:
getNamein classFunctionType
-
getRelativeName
public String getRelativeName()
- Specified by:
getRelativeNamein interfaceIType- Overrides:
getRelativeNamein classFunctionType
-
getRelativeNameSansBlock
public String getRelativeNameSansBlock()
- Specified by:
getRelativeNameSansBlockin interfaceIBlockType
-
getRelativeParamSignature
public String getRelativeParamSignature(boolean bSansBlock)
- Specified by:
getRelativeParamSignaturein interfaceIBlockType
-
getParameterNames
public String[] getParameterNames()
- Specified by:
getParameterNamesin interfaceIInvocableType- Overrides:
getParameterNamesin classFunctionType
-
areReturnTypesAssignable
protected boolean areReturnTypesAssignable(FunctionType that)
- Overrides:
areReturnTypesAssignablein classFunctionType
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classFunctionType
-
getDefaultValueExpressions
public IExpression[] getDefaultValueExpressions()
- Specified by:
getDefaultValueExpressionsin interfaceIInvocableType- Overrides:
getDefaultValueExpressionsin classFunctionType
-
hasOptionalParams
public boolean hasOptionalParams()
- Specified by:
hasOptionalParamsin interfaceIInvocableType- Overrides:
hasOptionalParamsin classFunctionType
-
newInstance
public IType newInstance(IType[] paramTypes, IType returnType)
- Specified by:
newInstancein interfaceIFunctionType- Overrides:
newInstancein classFunctionType
-
-