Example usage for Java org.eclipse.jdt.core.dom SwitchCase fields, constructors, methods, implement or subclass
The text is from its open source code.
ChildPropertyDescriptor | EXPRESSION_PROPERTY The "expression" structural property of this node type (child type: Expression ). |
SwitchCase(AST ast) Creates a new AST node for a switch case pseudo-statement owned by the given AST. |
void | accept(ASTVisitor visitor) Accepts the given visitor on a visit of the current node. |
boolean | equals(Object obj) The ASTNode implementation of this Object method uses object identity (==). |
Expression | getExpression() Returns the expression of this switch case, or null if there is none (the "default:" case). |
int | getLength() Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends. |
ASTNode | getParent() Returns this node's parent node, or null if this is the root node. |
int | getStartPosition() Returns the character index into the original source file indicating where the source fragment corresponding to this node begins. |
boolean | isDefault() Returns whether this switch case represents the "default:" case. |
void | setExpression(Expression expression) Sets the expression of this switch case, or clears it (turns it into the "default:" case). |
void | setSourceRange(int startPosition, int length) Sets the source range of the original source file where the source fragment corresponding to this node was found. |
String | toString() Returns a string representation of this node suitable for debugging purposes only. |