Package gw.lang.reflect
Interface IFunctionType
-
- All Superinterfaces:
IInvocableType
,INonLoadableType
,IType
,Serializable
- All Known Subinterfaces:
IBlockType
- All Known Implementing Classes:
BlockType
,DelegateFunctionType
,FunctionType
,ParameterizedFunctionType
public interface IFunctionType extends IInvocableType
-
-
Field Summary
-
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
areParamsCompatible(IFunctionType rhsFunctionType)
IMethodInfo
getMethodInfo()
An associated IMethodInfo.IFeatureInfo
getMethodOrConstructorInfo()
IType[]
getParameterTypes()
String
getParamSignature()
Formatted signature of the form "( param-list )" String
getParamSignatureForCurrentModule()
IType
getReturnType()
IScriptPartId
getScriptPart()
IFunctionType
inferParameterizedTypeFromArgTypesAndContextType(IType[] eArgs, IType ctxType)
boolean
isAssignableFrom(IType type, boolean bContravariant)
IType
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 Detail
-
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
IFunctionType inferParameterizedTypeFromArgTypesAndContextType(IType[] eArgs, IType ctxType)
-
areParamsCompatible
boolean areParamsCompatible(IFunctionType rhsFunctionType)
-
isAssignableFrom
boolean isAssignableFrom(IType type, boolean bContravariant)
-
getScriptPart
IScriptPartId getScriptPart()
-
-