public class DynamicFunctionSymbol extends AbstractDynamicSymbol implements IDynamicFunctionSymbol
_scriptPartId, _symTable_bGlobal, _iIndex, _stackProvider, _symbolTable, _value, MEMBER_STACK_PROVIDER| Modifier | Constructor and Description |
|---|---|
|
DynamicFunctionSymbol(DynamicFunctionSymbol dfs) |
|
DynamicFunctionSymbol(ISymbolTable symTable,
CharSequence strName,
IFunctionType type,
List<ISymbol> args,
IExpression value)
Constructs a DynamicFunctionSymbol for use with an IGosuParser's ISymbolTable.
|
|
DynamicFunctionSymbol(ISymbolTable symTable,
CharSequence strName,
IFunctionType type,
List<ISymbol> args,
IStatement value)
Constructs a DynamicFunctionSymbol for use with an IGosuParser's ISymbolTable.
|
protected |
DynamicFunctionSymbol(ISymbolTable symTable,
CharSequence name,
IFunctionType type,
List<ISymbol> args,
Object value) |
assignIndex, getGosuClass, getScriptPart, getSymbolTable, hasDynamicSymbolTable, isFromJava, isLocal, setDynamicSymbolTable, setScriptPartassignIndexInStack, canBeCaptured, getAnnotations, getDefaultValueExpression, getDynamicSymbolTable, getIndex, getModifierInfo, getModifiers, getName, getSymbolClass, getType, getValue, getValueDirectly, isHide, isImplicitlyInitialized, isInternal, isOverride, isPrivate, isProtected, isPublic, isStackSymbol, isStatic, isValueBoxed, isWritable, makeCapturedSymbol, replaceModifierInfo, setClassMember, setDefaultValueExpression, setHide, setIndex, setInternal, setModifierInfo, setModifiers, setName, setOverride, setPrivate, setProtected, setPublic, setStatic, setType, setValueDirectly, setValueIsBoxed, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetValueDirectly, isOverride, isStaticgetGosuClass, getScriptPartgetModifiers, isFromJava, isStackSymbolcanBeCaptured, getDefaultValueExpression, getDynamicSymbolTable, getIndex, getModifierInfo, getName, getType, getValue, hasDynamicSymbolTable, isLocal, isValueBoxed, isWritable, makeCapturedSymbol, setDefaultValueExpression, setDynamicSymbolTable, setType, setValueIsBoxedgetAnnotations, getSymbolClass, isInternal, isPrivate, isProtected, isPublicpublic DynamicFunctionSymbol(ISymbolTable symTable, CharSequence strName, IFunctionType type, List<ISymbol> args, IStatement value)
symTable - The symbol table.strName - The symbol name.type - The IGosuParser specific type.args - The symbols for the function's arguments (or null).value - A statement for the body of the function (or null).public DynamicFunctionSymbol(ISymbolTable symTable, CharSequence strName, IFunctionType type, List<ISymbol> args, IExpression value)
symTable - The symbol table.strName - The symbol name.type - The IGosuParser specific type.args - The symbols for the function's arguments (or null).value - An expression for the body of the function (or null).protected DynamicFunctionSymbol(ISymbolTable symTable, CharSequence name, IFunctionType type, List<ISymbol> args, Object value)
public DynamicFunctionSymbol(DynamicFunctionSymbol dfs)
public void renameAsErrantDuplicate(int iIndex)
renameAsErrantDuplicate in class Symbolpublic String getDisplayName()
SymbolgetDisplayName in interface IReducedSymbolgetDisplayName in interface ISymbolgetDisplayName in class Symbolprotected void setDisplayName(String strDisplayName)
public List<ISymbol> getArgs()
getArgs in interface IDynamicFunctionSymbolpublic IType[] getArgTypes()
getArgTypes in interface IDynamicFunctionSymbolpublic IType getReturnType()
getReturnType in interface IDynamicFunctionSymbolpublic Object invoke(Object[] args)
invoke in interface IFunctionSymbolinvoke in class Symbolprotected String getCannonicalName()
public boolean isClassMember()
isClassMember in class Symbolpublic void clearDebugInfo()
clearDebugInfo in class AbstractDynamicSymbolpublic boolean isConstructor()
isConstructor in interface IDynamicFunctionSymbolpublic String getSignatureDescription()
getSignatureDescription in interface IFunctionSymbolgetSignatureDescription in class Symbolpublic ISymbol getLightWeightReference()
getLightWeightReference in interface ISymbolgetLightWeightReference in class AbstractDynamicSymbolpublic String getMethodSignature()
getMethodSignature in interface IDynamicFunctionSymbolpublic static String getSignatureName(CharSequence strName, List<ISymbol> args)
protected String getSignatureName(CharSequence strName)
public String getParameterDisplay(boolean bRelative)
getParameterDisplay in interface IDynamicFunctionSymbolprotected DynamicFunctionSymbol getFunctionSymbol()
public void setInitializer(MethodCallStatement initializer)
public MethodCallStatement getInitializer()
getInitializer in interface IDynamicFunctionSymbolpublic boolean isAbstract()
isAbstract in interface IReducedSymbolisAbstract in class Symbolpublic void setAbstract(boolean bAbstract)
setAbstract in class Symbolpublic boolean isFinal()
isFinal in interface IReducedSymbolisFinal in class Symbolpublic IDynamicFunctionSymbol getBackingDfs()
getBackingDfs in interface IDynamicFunctionSymbolpublic IAttributedFeatureInfo getMethodOrConstructorInfo(boolean acceptNone)
getMethodOrConstructorInfo in interface IDynamicFunctionSymbolpublic IAttributedFeatureInfo getMethodOrConstructorInfo()
getMethodOrConstructorInfo in interface IDynamicFunctionSymbolpublic ITypeInfo getDeclaringTypeInfo()
getDeclaringTypeInfo in interface IDynamicFunctionSymbolpublic String getFullDescription()
getFullDescription in interface IReducedSymbolgetFullDescription in class Symbolpublic void setValue(Object value)
Symbolpublic FunctionStatement getDeclFunctionStmt()
getDeclFunctionStmt in interface IDynamicFunctionSymbolpublic void setDeclFunctionStmt(FunctionStatement declFunctionStmt)
public DynamicFunctionSymbol getParameterizedVersion(IGosuClass gsClass)
getParameterizedVersion in class AbstractDynamicSymbolpublic void clearDefn()
public void setSuperDfs(DynamicFunctionSymbol superDfs)
public DynamicFunctionSymbol getSuperDfs()
getSuperDfs in interface IDynamicFunctionSymbolpublic boolean hasTypeVariables()
hasTypeVariables in interface IReducedSymbolhasTypeVariables in class AbstractDynamicSymbolpublic boolean hasOptionalParameters()
public IReducedDynamicFunctionSymbol createReducedSymbol()
createReducedSymbol in interface IDynamicFunctionSymbolcreateReducedSymbol in interface ISymbolcreateReducedSymbol in class Symbolpublic void setLoopImplicitReturn(boolean bLoopImplicitReturn)
public boolean isLoopImplicitReturn()
public IExpression getAnnotationDefault()
public void setAnnotationDefault(IExpression annotationDefault)
Copyright © 2022. All rights reserved.