public class MultipleFieldDeclarationHelper
extends java.lang.Object
| Constructor and Description |
|---|
MultipleFieldDeclarationHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compoundFieldPart(ASTNode node) |
static ASTNode |
findLastFieldInGroup(ASTNode child)
Serves for processing composite field definitions as a single formatting block.
|
public static boolean compoundFieldPart(ASTNode node)
true if given node is a non-first part of composite field definition; false otherwisepublic static ASTNode findLastFieldInGroup(ASTNode child)
'Composite field definition' looks like 'int i1, i2 = 2'. It produces two nodes of type
JavaElementType.FIELD - 'int i1' and 'i2 = 2'. This method returns the second node if the first one
is given (the given node is returned for 'single' fields).child - child field node to check