Package gw.lang.parser
Interface IFunctionSymbol
-
- All Superinterfaces:
IHasType,IReducedSymbol,ISymbol
- All Known Subinterfaces:
ICapturedSymbol,IDynamicFunctionSymbol,IDynamicPropertySymbol,IDynamicSymbol,IInitConstructorFunctionSymbol,IInitializerSymbol,IProgramClassFunctionSymbol,ITypedSymbol
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 symbolStringgetSignatureDescription()Returns a description of arguments of the form ( < argName1 >, < argName2 >, etc.Objectinvoke(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
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:
getModifiersin interfaceIReducedSymbol
-
isFromJava
boolean isFromJava()
- Returns:
- true if this function symbol came from a java superclass
-
-