| Package | Description |
|---|---|
| com.github.javaparser.ast.stmt |
| Modifier and Type | Method and Description |
|---|---|
SwitchEntry.Type |
SwitchEntry.getType() |
static SwitchEntry.Type |
SwitchEntry.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SwitchEntry.Type[] |
SwitchEntry.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
SwitchEntry |
SwitchEntry.setType(SwitchEntry.Type type) |
| Constructor and Description |
|---|
SwitchEntry(NodeList<Expression> labels,
SwitchEntry.Type type,
NodeList<Statement> statements)
This constructor exists for backwards compatibility for code that instantiated `SwitchEntries` before
the `isDefault` and guard fields were added.
|
SwitchEntry(NodeList<Expression> labels,
SwitchEntry.Type type,
NodeList<Statement> statements,
boolean isDefault) |
SwitchEntry(TokenRange tokenRange,
NodeList<Expression> labels,
SwitchEntry.Type type,
NodeList<Statement> statements)
This constructor exists for backwards compatibility for code that instantiated `SwitchEntries` before
the `isDefault` and guard fields were added.
|
SwitchEntry(TokenRange tokenRange,
NodeList<Expression> labels,
SwitchEntry.Type type,
NodeList<Statement> statements,
boolean isDefault)
This constructor is used by the parser and is considered private.
|
SwitchEntry(TokenRange tokenRange,
NodeList<Expression> labels,
SwitchEntry.Type type,
NodeList<Statement> statements,
boolean isDefault,
Expression guard)
This constructor is used by the parser and is considered private.
|
Copyright © 2007–2024. All rights reserved.