Interface SwitchNode
-
- All Known Implementing Classes:
SwitchExpr,SwitchStmt
public interface SwitchNodeThe common interface ofSwitchExprandSwitchStmt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SwitchNodeclone()Optional<Comment>getComment()NodeList<SwitchEntry>getEntries()SwitchEntrygetEntry(int i)ExpressiongetSelector()default booleanisEmpty()booleanremove(Node node)booleanreplace(Node node, Node replacementNode)SwitchNodesetEntries(NodeList<SwitchEntry> entries)SwitchNodesetSelector(Expression selector)
-
-
-
Method Detail
-
getEntries
NodeList<SwitchEntry> getEntries()
-
getEntry
SwitchEntry getEntry(int i)
-
getSelector
Expression getSelector()
-
setEntries
SwitchNode setEntries(NodeList<SwitchEntry> entries)
-
setSelector
SwitchNode setSelector(Expression selector)
-
remove
boolean remove(Node node)
-
clone
SwitchNode clone()
-
isEmpty
default boolean isEmpty()
- Returns:
- true if there are no labels or anything contained in this switch.
-
-