Package net.jangaroo.jooc.ast
Class SemicolonTerminatedStatement
- java.lang.Object
-
- net.jangaroo.jooc.ast.NodeImplBase
-
- net.jangaroo.jooc.ast.Directive
-
- net.jangaroo.jooc.ast.Statement
-
- net.jangaroo.jooc.ast.SemicolonTerminatedStatement
-
- All Implemented Interfaces:
AstNode
- Direct Known Subclasses:
EmptyStatement,KeywordExprStatement
public class SemicolonTerminatedStatement extends Statement
- Author:
- Andreas Gawecki
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.jangaroo.jooc.ast.NodeImplBase
NodeImplBase.Scoped
-
-
Field Summary
-
Fields inherited from class net.jangaroo.jooc.ast.NodeImplBase
usesInstanceThis
-
-
Constructor Summary
Constructors Constructor Description SemicolonTerminatedStatement(AstNode optStatement, JooSymbol optSymSemicolon)Optional statement with optional semicolon, but at least one must be specified (non-null).SemicolonTerminatedStatement(JooSymbol optSymSemicolon)Empty statement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanalyze(AstNode parentNode)List<? extends AstNode>getChildren()AstNodegetOptStatement()JooSymbolgetOptSymSemicolon()JooSymbolgetSymbol()voidscope(Scope scope)voidsetOptStatement(AstNode optStatement)voidsetOptSymSemicolon(JooSymbol optSymSemicolon)voidvisit(AstVisitor visitor)-
Methods inherited from class net.jangaroo.jooc.ast.Directive
isClassMember, isStatic, setClassMember
-
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, getParentNode, isAssignmentLHS, makeChildren, notifyInstanceThisUsed, propagateInstanceThisUsed, scope, usesInstanceThis, withNewDeclarationScope, withNewLabelScope
-
-
-
-
Constructor Detail
-
SemicolonTerminatedStatement
public SemicolonTerminatedStatement(JooSymbol optSymSemicolon)
Empty statement.- Parameters:
optSymSemicolon- the semicolon symbol
-
-
Method Detail
-
getChildren
public List<? extends AstNode> getChildren()
- Specified by:
getChildrenin interfaceAstNode- Overrides:
getChildrenin classNodeImplBase
-
visit
public void visit(AstVisitor visitor) throws IOException
- Throws:
IOException
-
scope
public void scope(Scope scope)
-
analyze
public void analyze(AstNode parentNode)
- Specified by:
analyzein interfaceAstNode- Overrides:
analyzein classNodeImplBase
-
getSymbol
public JooSymbol getSymbol()
-
getOptStatement
public AstNode getOptStatement()
-
setOptStatement
public void setOptStatement(AstNode optStatement)
-
getOptSymSemicolon
public JooSymbol getOptSymSemicolon()
-
setOptSymSemicolon
public void setOptSymSemicolon(JooSymbol optSymSemicolon)
-
-