S
- the type of the selector expressionpublic interface CtAbstractSwitch<S> extends CtElement
Modifier and Type | Method and Description |
---|---|
<T extends CtAbstractSwitch<S>> |
addCase(CtCase<? super S> c)
Adds a case;
|
java.util.List<CtCase<? super S>> |
getCases()
Gets the list of cases defined for this switch.
|
CtExpression<S> |
getSelector()
Gets the selector.
|
boolean |
removeCase(CtCase<? super S> c)
Removes a case;
|
<T extends CtAbstractSwitch<S>> |
setCases(java.util.List<CtCase<? super S>> cases)
Sets the list of cases defined for this switch.
|
<T extends CtAbstractSwitch<S>> |
setSelector(CtExpression<S> selector)
Sets the selector.
|
addAnnotation, addComment, asIterable, clone, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, updateAllParentsBelow
getFactory, setFactory
accept
filterChildren, map, map
CtExpression<S> getSelector()
char
,
byte
, short
, int
,
Character
, Byte
, Short
,
Integer
, or an enum
type<T extends CtAbstractSwitch<S>> T setSelector(CtExpression<S> selector)
char
,
byte
, short
, int
,
Character
, Byte
, Short
,
Integer
, or an enum
typejava.util.List<CtCase<? super S>> getCases()
<T extends CtAbstractSwitch<S>> T setCases(java.util.List<CtCase<? super S>> cases)
<T extends CtAbstractSwitch<S>> T addCase(CtCase<? super S> c)
Copyright © 2007–2021 Inria. All rights reserved.