public final class StatementList extends Statement implements IStatementList
statement-list <statement> <statement-list> <statement>
IGosuParser| Modifier and Type | Field and Description |
|---|---|
protected IStackProvider |
_stackProvider |
protected Statement[] |
_statements |
VOID_RETURN_VALUE_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULE| Constructor and Description |
|---|
StatementList(IStackProvider stackProvider)
Constructs a StatementList given an ISymbolTable instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
adjustLineNum(int offset) |
void |
clearParseTreeInformation() |
Object |
execute()
Execute the list of statements.
|
int |
getLastLine() |
protected ITerminalStatement |
getLeastSignificantTerminalStatement_internal(boolean[] bAbsolute) |
ITerminalStatement |
getLeastSignificantTerminalStatementAfter(Statement fromStmt,
boolean[] bAbsolute) |
Statement |
getSelfOrSingleStatement() |
Statement[] |
getStatements() |
boolean |
hasScope()
for testing
|
int |
indexOf(Statement stmt) |
void |
setLastLineNumber(int lastLine) |
void |
setNoScope() |
void |
setStatements(List<Statement> statements) |
String |
toString()
Subclasses should return a String representing the parsed statement.
|
execute, getExcludedReturnTypeElements, getLeastSignificant, getLeastSignificantTerminalStatement, getReturnType, hasContent, isNoOp, setParentaddExceptionsFrom, addParseException, addParseException, addParseException, addParseExceptions, addParseIssues, addParseWarning, addParseWarning, addParseWarnings, addToken, adjustColumn, assignTokens, clearParseExceptions, 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, waitexecute, getLeastSignificantTerminalStatement, hasContentaddExceptionsFrom, addParseException, addParseException, addParseWarning, addParseWarning, clearParseExceptions, clearParseWarnings, findAncestorParsedElementByType, findDeclaringStatement, findRootParsedElement, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getFunctionName, 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, setParentprotected Statement[] _statements
protected IStackProvider _stackProvider
public StatementList(IStackProvider stackProvider)
public void clearParseTreeInformation()
clearParseTreeInformation in interface IParsedElementclearParseTreeInformation in class ParsedElementpublic Statement[] getStatements()
getStatements in interface IStatementListpublic void setStatements(List<Statement> statements)
statements - A list of Statements representing this statement-list.public int indexOf(Statement stmt)
public void setNoScope()
public boolean hasScope()
hasScope in interface IStatementListpublic Object execute()
execute in interface IStatementexecute in class Statementprotected ITerminalStatement getLeastSignificantTerminalStatement_internal(boolean[] bAbsolute)
getLeastSignificantTerminalStatement_internal in class Statementpublic ITerminalStatement getLeastSignificantTerminalStatementAfter(Statement fromStmt, boolean[] bAbsolute)
public String toString()
Statementpublic Statement getSelfOrSingleStatement()
public int getLastLine()
getLastLine in interface IStatementListpublic void setLastLineNumber(int lastLine)
public void adjustLineNum(int offset)
adjustLineNum in class ParsedElementCopyright © 2017. All rights reserved.