pt.compiler.parser.ast.stmt
Class SwitchStmt

java.lang.Object
  extended by pt.compiler.parser.ast.Node
      extended by pt.compiler.parser.ast.stmt.Statement
          extended by pt.compiler.parser.ast.stmt.SwitchStmt

public final class SwitchStmt
extends Statement

Author:
Julio Vilmar Gesser

Constructor Summary
SwitchStmt(int line, int column, Expression selector, java.util.List<SwitchEntryStmt> entries)
           
 
Method Summary
<R,A> R
accept(GenericVisitor<R,A> v, A arg)
           
<A> void
accept(VoidVisitor<A> v, A arg)
           
 java.util.List<SwitchEntryStmt> getEntries()
           
 Expression getSelector()
           
 
Methods inherited from class pt.compiler.parser.ast.Node
getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SwitchStmt

public SwitchStmt(int line,
                  int column,
                  Expression selector,
                  java.util.List<SwitchEntryStmt> entries)
Method Detail

getSelector

public Expression getSelector()

getEntries

public java.util.List<SwitchEntryStmt> getEntries()

accept

public <A> void accept(VoidVisitor<A> v,
                       A arg)
Overrides:
accept in class Node

accept

public <R,A> R accept(GenericVisitor<R,A> v,
                      A arg)
Overrides:
accept in class Node