public class ReturnStatement extends AssignmentStatement
This class represents a return statement
Statement.LabeledLanguageObject.UtilTYPE_ASSIGNMENT, TYPE_BREAK, TYPE_COMMAND, TYPE_COMPOUND, TYPE_CONTINUE, TYPE_DECLARE, TYPE_ERROR, TYPE_IF, TYPE_LEAVE, TYPE_LOOP, TYPE_RETURN, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_WHILE| Constructor and Description |
|---|
ReturnStatement(Expression value) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
Object |
clone()
Deep clone statement to produce a new identical statement.
|
boolean |
equals(Object obj)
Compare two AssignmentStatements for equality.
|
int |
getType()
Return the type for this statement, this is one of the types
defined on the statement object.
|
getCommand, getExpectedType, getExpression, getVariable, hashCode, setCommand, setExpression, setVariablepublic ReturnStatement(Expression value)
public int getType()
getType in class AssignmentStatementpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObjectacceptVisitor in interface LanguageObjectacceptVisitor in class AssignmentStatementvisitor - Visitor being usedpublic Object clone()
clone in interface LanguageObjectclone in class AssignmentStatementpublic boolean equals(Object obj)
AssignmentStatementequals in class AssignmentStatementobj - Other objectCopyright © 2019. All rights reserved.