public final class DoWhileStatement extends LoopStatement implements IDoWhileStatement
do-while-statement while ( <expression> ) <statement>
IGosuParser
Modifier and Type | Field and Description |
---|---|
protected Expression |
_expression |
protected Statement |
_statement |
VOID_RETURN_VALUE
_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULE
Constructor and Description |
---|
DoWhileStatement() |
Modifier and Type | Method and Description |
---|---|
Object |
execute()
Execute the do...while statement
|
Expression |
getExpression() |
protected ITerminalStatement |
getLeastSignificantTerminalStatement_internal(boolean[] bAbsolute) |
Statement |
getStatement() |
TerminalType |
getTerminalType() |
void |
setExpression(Expression expression) |
void |
setStatement(Statement statement) |
String |
toString()
Subclasses should return a String representing the parsed statement.
|
getArrayComponentType, getArrayLength, isConditionLiteralTrue, isIteratorType, makeIterator
execute, getExcludedReturnTypeElements, getLeastSignificant, getLeastSignificantTerminalStatement, getReturnType, hasContent, isNoOp, setParent
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, shouldClearParseInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isConditionLiteralTrue
execute, getLeastSignificantTerminalStatement, hasContent
addExceptionsFrom, 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, getReturnType, getTokens, hasImmediateParseIssue, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, isCompileTimeConstant, isSuppressed, isSynthetic, setLocation, setParent
protected Expression _expression
protected Statement _statement
public Expression getExpression()
getExpression
in interface ILoopStatement
public void setExpression(Expression expression)
expression
- The conditional expression.public Statement getStatement()
getStatement
in interface ILoopStatement
public void setStatement(Statement statement)
statement
- The statement to execute while the conditional expression
evaluates to true.public Object execute()
execute
in interface IStatement
execute
in class Statement
protected ITerminalStatement getLeastSignificantTerminalStatement_internal(boolean[] bAbsolute)
getLeastSignificantTerminalStatement_internal
in class Statement
public TerminalType getTerminalType()
getTerminalType
in interface ITerminalStatement
Copyright © 2016. All rights reserved.