public class FunctionStatement extends Statement implements IFunctionStatement
VOID_RETURN_VALUE_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULE| Constructor and Description |
|---|
FunctionStatement() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
declares(String identifierName) |
Object |
execute() |
IFeatureInfo |
findOwningFeatureInfoOfDeclaredSymbols(String identifierName) |
List<IGosuAnnotation> |
getAnnotations() |
String[] |
getDeclarations() |
DynamicFunctionSymbol |
getDynamicFunctionSymbol() |
protected List |
getExcludedReturnTypeElements() |
String |
getFunctionName() |
static IMethodInfo |
getGenericMethodInfo(IMethodInfo mi) |
protected ITerminalStatement |
getLeastSignificantTerminalStatement_internal(boolean[] bAbsolute) |
int |
getNameOffset(String identifierName) |
List<IParameterDeclaration> |
getParameters() |
boolean |
isNoOp() |
void |
setDynamicFunctionSymbol(DynamicFunctionSymbol dfs) |
void |
setNameOffset(int iOffset,
String identifierName) |
String |
toString()
Subclasses should return a String representing the parsed statement.
|
execute, getLeastSignificant, getLeastSignificantTerminalStatement, getReturnType, hasContent, setParentaddExceptionsFrom, addParseException, addParseException, addParseException, addParseExceptions, addParseIssues, addParseWarning, addParseWarning, addParseWarnings, addToken, adjustColumn, adjustLineNum, assignTokens, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, compactParseTree, findAncestorParsedElementByType, findDeclaringStatement, findLineNumberOfDeclaration, findRootParsedElement, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getEnclosingFeatureInfo, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getQualifyingEnclosingTypeInfo, getTokens, hasImmediateParseIssue, hasImmediateParseWarning, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, initEmptyParseTree, initLocation, isCompileTimeConstant, isSuppressed, isSuppressed, isSynthetic, makeDoubleValue, makeFloatValue, makeInteger, makeLong, removeParseException, removeParseWarning, removeParseWarningRecursively, setGosuProgram, setLineNum, setLocation, setSynthetic, shouldClearParseInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLastLineexecute, getLeastSignificantTerminalStatement, hasContentaddExceptionsFrom, addParseException, addParseException, addParseWarning, addParseWarning, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, findAncestorParsedElementByType, findDeclaringStatement, findRootParsedElement, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getReturnType, getTokens, hasImmediateParseIssue, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, isCompileTimeConstant, isSuppressed, isSynthetic, setLocation, setParentpublic void setDynamicFunctionSymbol(DynamicFunctionSymbol dfs)
public DynamicFunctionSymbol getDynamicFunctionSymbol()
getDynamicFunctionSymbol in interface IFunctionStatementpublic Object execute()
execute in interface IStatementexecute in class Statementprotected ITerminalStatement getLeastSignificantTerminalStatement_internal(boolean[] bAbsolute)
getLeastSignificantTerminalStatement_internal in class Statementpublic String toString()
Statementpublic String getFunctionName()
getFunctionName in interface IParsedElementgetFunctionName in class ParsedElementpublic int getNameOffset(String identifierName)
getNameOffset in interface IParsedElementWithAtLeastOneDeclarationpublic void setNameOffset(int iOffset,
String identifierName)
setNameOffset in interface IParsedElementWithAtLeastOneDeclarationpublic boolean declares(String identifierName)
declares in interface IParsedElementWithAtLeastOneDeclarationpublic String[] getDeclarations()
getDeclarations in interface IParsedElementWithAtLeastOneDeclarationpublic IFeatureInfo findOwningFeatureInfoOfDeclaredSymbols(String identifierName)
public static IMethodInfo getGenericMethodInfo(IMethodInfo mi)
public List<IParameterDeclaration> getParameters()
getParameters in interface IFunctionStatementpublic List<IGosuAnnotation> getAnnotations()
getAnnotations in class ParsedElementprotected List getExcludedReturnTypeElements()
getExcludedReturnTypeElements in class StatementCopyright © 2022. All rights reserved.