Interface SwitchNode
- All Known Implementing Classes:
SwitchExpr
,SwitchStmt
public interface SwitchNode
The common interface of
SwitchExpr
and SwitchStmt
-
Method Summary
Modifier and TypeMethodDescriptionclone()
getEntry
(int i) default boolean
isEmpty()
boolean
boolean
setEntries
(NodeList<SwitchEntry> entries) setSelector
(Expression selector)
-
Method Details
-
getEntries
NodeList<SwitchEntry> getEntries() -
getEntry
-
getSelector
Expression getSelector() -
setEntries
-
setSelector
-
remove
-
clone
SwitchNode clone() -
replace
-
getComment
-
isEmpty
default boolean isEmpty()- Returns:
- true if there are no labels or anything contained in this switch.
-