public abstract class Statement extends ParsedElement implements IStatement
IGosuParser| Modifier and Type | Field and Description |
|---|---|
static Object |
VOID_RETURN_VALUE |
_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULE| Constructor and Description |
|---|
Statement() |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute() |
Object |
execute(IExternalSymbolMap externalSymbols) |
protected List |
getExcludedReturnTypeElements() |
static ITerminalStatement |
getLeastSignificant(ITerminalStatement... termStmts) |
protected abstract ITerminalStatement |
getLeastSignificantTerminalStatement_internal(boolean[] bAbsolute) |
ITerminalStatement |
getLeastSignificantTerminalStatement(boolean[] bAbsolute) |
IType |
getReturnType() |
boolean |
hasContent() |
boolean |
isNoOp() |
void |
setParent(IParsedElement rootElement) |
abstract String |
toString()
Subclasses should return a String representing the parsed statement.
|
addExceptionsFrom, addParseException, addParseException, addParseException, addParseExceptions, addParseIssues, addParseWarning, addParseWarning, addParseWarnings, addToken, adjustColumn, adjustLineNum, assignTokens, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, compactParseTree, findAncestorParsedElementByType, findDeclaringStatement, findLineNumberOfDeclaration, findRootParsedElement, getAnnotations, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getEnclosingFeatureInfo, getFunctionName, 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, waitaddExceptionsFrom, addParseException, addParseException, addParseWarning, addParseWarning, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, findAncestorParsedElementByType, findDeclaringStatement, findRootParsedElement, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getTokens, hasImmediateParseIssue, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, isCompileTimeConstant, isSuppressed, isSynthetic, setLocationpublic static final Object VOID_RETURN_VALUE
public Object execute()
execute in interface IStatementpublic Object execute(IExternalSymbolMap externalSymbols)
execute in interface IStatementpublic abstract String toString()
public boolean isNoOp()
public IType getReturnType()
getReturnType in interface IParsedElementprotected List getExcludedReturnTypeElements()
public boolean hasContent()
hasContent in interface IStatementpublic void setParent(IParsedElement rootElement)
setParent in interface IParsedElementsetParent in class ParsedElementpublic final ITerminalStatement getLeastSignificantTerminalStatement(boolean[] bAbsolute)
getLeastSignificantTerminalStatement in interface IStatementprotected abstract ITerminalStatement getLeastSignificantTerminalStatement_internal(boolean[] bAbsolute)
public static ITerminalStatement getLeastSignificant(ITerminalStatement... termStmts)
Copyright © 2019. All rights reserved.