public class NodeUtils
extends java.lang.Object
Node
.Constructor and Description |
---|
NodeUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isArrayLengthFieldAccess(Node node) |
static boolean |
isBooleanTypeNode(Node node) |
static boolean |
isMethodInvocation(Node node,
javax.lang.model.element.ExecutableElement method,
javax.annotation.processing.ProcessingEnvironment env)
Returns true iff
node is an invocation of the given method. |
public static boolean isBooleanTypeNode(Node node)
node
corresponds to a boolean typed expression (either the primitive
type boolean
, or class type Boolean
)public static boolean isArrayLengthFieldAccess(Node node)
node
is a FieldAccessNode
that is an access to an array's
lengthpublic static boolean isMethodInvocation(Node node, javax.lang.model.element.ExecutableElement method, javax.annotation.processing.ProcessingEnvironment env)
node
is an invocation of the given method.