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
public interface IFunctionSymbol extends ISymbol
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getModifiers()
Returns the modifiers for this function symbolString
getSignatureDescription()
Returns a description of arguments of the form ( < argName1 >, < argName2 >, etc. ) appropriate for display in a source editor ui.Object
invoke(Object[] args)
Invokes the method represented by this symbol.boolean
isFromJava()
boolean
isStackSymbol()
Returns true if the value of this function symbol is stored on the stack as a variable-
Methods inherited from interface gw.lang.parser.IReducedSymbol
getAnnotations, getFullDescription, getGosuClass, getScriptPart, getSymbolClass, hasTypeVariables, isAbstract, isFinal, isInternal, isPrivate, isProtected, isPublic, isReified, isStatic
-
Methods 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 Detail
-
invoke
Object invoke(Object[] args)
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:
getModifiers
in interfaceIReducedSymbol
-
isFromJava
boolean isFromJava()
- Returns:
- true if this function symbol came from a java superclass
-
-