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 intgetModifiers()Returns the modifiers for this function symboljava.lang.StringgetSignatureDescription()Returns a description of arguments of the form ( < argName1 >, < argName2 >, etc.java.lang.Objectinvoke(java.lang.Object[] args)Invokes the method represented by this symbol.booleanisFromJava()booleanisStackSymbol()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
java.lang.Object invoke(java.lang.Object[] args)
Invokes the method represented by this symbol.- Parameters:
args- An array of arguments to forward to the function.
-
getSignatureDescription
java.lang.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
-
-