public static enum ASTRewrite.CommentPosition extends Enum<ASTRewrite.CommentPosition>
Enum Constant and Description |
---|
freestanding
Comments before a closing brace such as they occur in namespace-, class- and
method-definitions or at the end of a file
|
leading
Comments before a statement, declaration, or definition
|
trailing
Comments right after the AST node on the same line
|
Modifier and Type | Method and Description |
---|---|
static ASTRewrite.CommentPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ASTRewrite.CommentPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ASTRewrite.CommentPosition leading
public static final ASTRewrite.CommentPosition trailing
public static final ASTRewrite.CommentPosition freestanding
public static ASTRewrite.CommentPosition[] values()
for (ASTRewrite.CommentPosition c : ASTRewrite.CommentPosition.values()) System.out.println(c);
public static ASTRewrite.CommentPosition valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.