Package gw.lang.reflect
Interface IFunctionType
- All Superinterfaces:
IInvocableType
,INonLoadableType
,IType
,Serializable
- All Known Subinterfaces:
IBlockType
- All Known Implementing Classes:
BlockType
,DelegateFunctionType
,ErrorTypeInfo.UniversalFunctionType
,FunctionType
,ParameterizedFunctionType
-
Field Summary
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
Method Summary
Modifier and TypeMethodDescriptionboolean
areParamsCompatible
(IFunctionType rhsFunctionType) An associated IMethodInfo.IType[]
Formatted signature of the form "( param-list )" inferParameterizedTypeFromArgTypesAndContextType
(IType[] eArgs, IType ctxType) boolean
isAssignableFrom
(IType type, boolean bContravariant) newInstance
(IType[] paramTypes, IType returnType) Methods inherited from interface gw.lang.reflect.IInvocableType
getDefaultValueExpressions, getParameterNames, hasOptionalParams
Methods inherited from interface gw.lang.reflect.IType
compile, getAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getComponentType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getFunctionalInterface, getGenericType, getGenericTypeVariables, getInterfaces, getLiteralMetaType, getMetaType, getModifiers, getName, getNamespace, getParameterizedType, getRelativeName, 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
-
Method Details
-
getReturnType
IType getReturnType() -
getParameterTypes
IType[] getParameterTypes()- Specified by:
getParameterTypes
in interfaceIInvocableType
-
getMethodInfo
IMethodInfo getMethodInfo()An associated IMethodInfo. Optional. -
getMethodOrConstructorInfo
IFeatureInfo getMethodOrConstructorInfo() -
getParamSignature
String getParamSignature()Formatted signature of the form "( param-list )" - Specified by:
getParamSignature
in interfaceIInvocableType
-
getParamSignatureForCurrentModule
String getParamSignatureForCurrentModule() -
inferParameterizedTypeFromArgTypesAndContextType
-
areParamsCompatible
-
isAssignableFrom
-
getScriptPart
IScriptPartId getScriptPart() -
newInstance
- Returns:
- a new copy of this IFunctionType with the given parameter and return types
-