public class JavaFormatterUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areSamePriorityBinaryExpressions(ASTNode node1,
ASTNode node2)
Allows to check if given
AST nodes refer to binary expressions which have the same priority. |
static WrapType |
getWrapType(int wrap) |
static boolean |
isAssignment(ASTNode node)
Allows to answer if given node wraps assignment operation.
|
public static boolean isAssignment(ASTNode node)
node - node to checktrue if given node wraps assignment operation; false otherwisepublic static boolean areSamePriorityBinaryExpressions(ASTNode node1, ASTNode node2)
AST nodes refer to binary expressions which have the same priority.node1 - node to checknode2 - node to checktrue if given nodes are binary expressions and have the same priority;
false otherwisepublic static WrapType getWrapType(int wrap)