Package gw.lang.parser
Interface IFunctionSymbol
- All Superinterfaces:
IHasType,IReducedSymbol,ISymbol
- All Known Subinterfaces:
ICapturedSymbol,IDynamicFunctionSymbol,IDynamicPropertySymbol,IDynamicSymbol,IInitConstructorFunctionSymbol,IInitializerSymbol,IProgramClassFunctionSymbol,ITypedSymbol
- All Known Implementing Classes:
AbstractDynamicSymbol,AmbiguousSymbol,CapturedSymbol,CommonSymbolsScope.LockedDownSymbol,CompileTimeExpressionParser.CompileTimeFieldSymbol,DelegateFunctionSymbol,DynamicFunctionSymbol,DynamicPropertySymbol,DynamicSymbol,EnhancementDynamicFunctionSymbol,EnumAllValuesFunctionSymbol,EnumAllValuesPropertySymbol,EnumCodeFunctionSymbol,EnumCodePropertySymbol,EnumDisplayNameFunctionSymbol,EnumDisplayNamePropertySymbol,EnumNameFunctionSymbol,EnumNamePropertySymbol,EnumOrdinalFunctionSymbol,EnumOrdinalPropertySymbol,EnumValueFunctionSymbol,EnumValueOfFunctionSymbol,EnumValuePropertySymbol,EnumValuesFunctionSymbol,GosuObjectFunctionSymbol,InitConstructorFunctionSymbol,InitializerSymbol,IntrinsicTypeFunctionSymbol,IntrinsicTypePropertySymbol,OuterFunctionSymbol,ParameterizedDynamicFunctionSymbol,ParameterizedDynamicPropertySymbol,ProgramClassFunctionSymbol,ProgramExecuteFunctionSymbol,QueryPathRootSymbol,ReadOnlySymbol,ReducedSymbol.SyntheticSymbol,SuperConstructorFunctionSymbol,Symbol,TemplateGenerator.LockedDownSymbol,TemplateRenderFunctionSymbol,ThisConstructorFunctionSymbol,ThisSymbol,TypedSymbol,VarPropertyGetFunctionSymbol,VarPropertySetFunctionSymbol
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the modifiers for this function symbolReturns a description of arguments of the form ( < argName1 >, < argName2 >, etc.Invokes the method represented by this symbol.booleanbooleanReturns true if the value of this function symbol is stored on the stack as a variableMethods inherited from interface gw.lang.parser.IReducedSymbol
getAnnotations, getFullDescription, getGosuClass, getScriptPart, getSymbolClass, hasTypeVariables, isAbstract, isFinal, isInternal, isPrivate, isProtected, isPublic, isReified, isStaticMethods inherited from interface gw.lang.parser.ISymbol
canBeCaptured, createReducedSymbol, getDefaultValueExpression, getDisplayName, getDynamicSymbolTable, getIndex, getLightWeightReference, getModifierInfo, getName, getType, getValue, hasDynamicSymbolTable, isLocal, isValueBoxed, isWritable, makeCapturedSymbol, setDefaultValueExpression, setDynamicSymbolTable, setType, setValue, setValueIsBoxed
-
Method Details
-
invoke
Invokes the method represented by this symbol.- Parameters:
args- An array of arguments to forward to the function.
-
getSignatureDescription
String getSignatureDescription()Returns a description of arguments of the form ( < argName1 >, < argName2 >, etc. ) appropriate for display in a source editor ui. -
isStackSymbol
boolean isStackSymbol()Returns true if the value of this function symbol is stored on the stack as a variable -
getModifiers
int getModifiers()Returns the modifiers for this function symbol- Specified by:
getModifiersin interfaceIReducedSymbol
-
isFromJava
boolean isFromJava()- Returns:
- true if this function symbol came from a java superclass
-