public final class Nodes
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.LinkedList<org.eclipse.jdt.core.dom.ASTNode> |
ancestors(org.eclipse.jdt.core.dom.ASTNode node) |
static java.util.LinkedList<org.eclipse.jdt.core.dom.ASTNode> |
children(org.eclipse.jdt.core.dom.ASTNode node) |
static <N extends org.eclipse.jdt.core.dom.ASTNode> |
copyOf(N node) |
static <N extends org.eclipse.jdt.core.dom.ASTNode> |
copyOf(N node,
org.eclipse.jdt.core.dom.AST tree) |
static <N extends org.eclipse.jdt.core.dom.ASTNode> |
copyOf(N node,
TreeApiLevel level) |
static org.eclipse.jdt.core.dom.ASTNode |
create(org.eclipse.jdt.core.dom.ASTParser parser,
byte[] source,
java.nio.charset.Charset charset) |
static org.eclipse.jdt.core.dom.ASTNode |
create(org.eclipse.jdt.core.dom.ASTParser parser,
char[] source) |
static org.eclipse.jdt.core.dom.ASTNode |
create(org.eclipse.jdt.core.dom.ASTParser parser,
java.lang.CharSequence source) |
static org.eclipse.jdt.core.dom.ASTNode |
create(org.eclipse.jdt.core.dom.ASTParser parser,
org.eclipse.jdt.core.ICompilationUnit source) |
static org.eclipse.jdt.core.dom.ASTNode |
create(org.eclipse.jdt.core.dom.ASTParser parser,
org.eclipse.jdt.core.ICompilationUnit source,
boolean resolveBindings) |
static java.util.LinkedList<org.eclipse.jdt.core.dom.ASTNode> |
descendants(org.eclipse.jdt.core.dom.ASTNode node) |
static java.util.LinkedList<org.eclipse.jdt.core.dom.ASTNode> |
downToRoot(org.eclipse.jdt.core.dom.ASTNode node) |
static org.eclipse.jdt.core.dom.ASTNode |
firstAncestor(org.eclipse.jdt.core.dom.ASTNode node,
com.google.common.base.Predicate<org.eclipse.jdt.core.dom.ASTNode> predicate) |
static org.eclipse.jdt.core.dom.ASTNode |
firstDescendant(org.eclipse.jdt.core.dom.ASTNode node,
com.google.common.base.Predicate<org.eclipse.jdt.core.dom.ASTNode> predicate) |
static org.eclipse.jdt.core.dom.ASTNode |
firstDownToRoot(org.eclipse.jdt.core.dom.ASTNode node,
com.google.common.base.Predicate<org.eclipse.jdt.core.dom.ASTNode> predicate) |
static org.eclipse.jdt.core.dom.ASTNode |
firstUpToLeaves(org.eclipse.jdt.core.dom.ASTNode node,
com.google.common.base.Predicate<org.eclipse.jdt.core.dom.ASTNode> predicate) |
static java.util.Map<java.lang.String,java.lang.Object> |
genericProperties(org.eclipse.jdt.core.dom.ASTNode node) |
static boolean |
hasSource(org.eclipse.jdt.core.dom.ASTNode node) |
static boolean |
isAncestor(org.eclipse.jdt.core.dom.ASTNode node,
org.eclipse.jdt.core.dom.ASTNode ancestor) |
static boolean |
isChild(org.eclipse.jdt.core.dom.ASTNode node,
org.eclipse.jdt.core.dom.ASTNode child) |
static boolean |
isDescendant(org.eclipse.jdt.core.dom.ASTNode node,
org.eclipse.jdt.core.dom.ASTNode descendant) |
static boolean |
isParent(org.eclipse.jdt.core.dom.ASTNode node,
org.eclipse.jdt.core.dom.ASTNode parent) |
static boolean |
isProblematic(org.eclipse.jdt.core.dom.ASTNode node) |
static boolean |
isProblematicTree(org.eclipse.jdt.core.dom.ASTNode node) |
static boolean |
isRoot(org.eclipse.jdt.core.dom.ASTNode node) |
static <N extends org.eclipse.jdt.core.dom.ASTNode> |
newNode(org.eclipse.jdt.core.dom.AST tree,
java.lang.Class<N> type) |
static org.eclipse.jdt.core.dom.AST |
newTree() |
static org.eclipse.jdt.core.dom.AST |
newTree(TreeApiLevel level) |
static org.eclipse.jdt.core.dom.ASTNode |
parent(org.eclipse.jdt.core.dom.ASTNode node) |
static org.eclipse.jdt.core.dom.ASTNode |
root(org.eclipse.jdt.core.dom.ASTNode node) |
static java.lang.String |
source(org.eclipse.jdt.core.dom.ASTNode node,
NodeRangeType range) |
static java.util.List<org.eclipse.jdt.core.dom.StructuralPropertyDescriptor> |
structuralProperties(org.eclipse.jdt.core.dom.ASTNode node) |
static java.lang.Class<? extends org.eclipse.jdt.core.dom.ASTNode> |
toClass(org.eclipse.jdt.core.dom.ASTNode node) |
static NodeType |
toType(org.eclipse.jdt.core.dom.ASTNode node) |
static java.lang.String |
toTypeString(org.eclipse.jdt.core.dom.ASTNode node) |
static java.util.LinkedList<org.eclipse.jdt.core.dom.ASTNode> |
upToLeaves(org.eclipse.jdt.core.dom.ASTNode node) |
public static org.eclipse.jdt.core.dom.AST newTree()
public static org.eclipse.jdt.core.dom.AST newTree(TreeApiLevel level)
public static <N extends org.eclipse.jdt.core.dom.ASTNode> N newNode(org.eclipse.jdt.core.dom.AST tree, java.lang.Class<N> type)
public static org.eclipse.jdt.core.dom.ASTNode create(org.eclipse.jdt.core.dom.ASTParser parser, byte[] source, java.nio.charset.Charset charset)
public static org.eclipse.jdt.core.dom.ASTNode create(org.eclipse.jdt.core.dom.ASTParser parser, char[] source)
public static org.eclipse.jdt.core.dom.ASTNode create(org.eclipse.jdt.core.dom.ASTParser parser, java.lang.CharSequence source)
public static org.eclipse.jdt.core.dom.ASTNode create(org.eclipse.jdt.core.dom.ASTParser parser, org.eclipse.jdt.core.ICompilationUnit source)
public static org.eclipse.jdt.core.dom.ASTNode create(org.eclipse.jdt.core.dom.ASTParser parser, org.eclipse.jdt.core.ICompilationUnit source, boolean resolveBindings)
public static <N extends org.eclipse.jdt.core.dom.ASTNode> N copyOf(N node)
public static <N extends org.eclipse.jdt.core.dom.ASTNode> N copyOf(N node, TreeApiLevel level)
public static <N extends org.eclipse.jdt.core.dom.ASTNode> N copyOf(N node, org.eclipse.jdt.core.dom.AST tree)
public static org.eclipse.jdt.core.dom.ASTNode root(@Nullable org.eclipse.jdt.core.dom.ASTNode node)
public static org.eclipse.jdt.core.dom.ASTNode parent(@Nullable org.eclipse.jdt.core.dom.ASTNode node)
public static java.util.LinkedList<org.eclipse.jdt.core.dom.ASTNode> children(@Nullable org.eclipse.jdt.core.dom.ASTNode node)
public static java.util.LinkedList<org.eclipse.jdt.core.dom.ASTNode> ancestors(@Nullable org.eclipse.jdt.core.dom.ASTNode node)
public static java.util.LinkedList<org.eclipse.jdt.core.dom.ASTNode> descendants(@Nullable org.eclipse.jdt.core.dom.ASTNode node)
public static java.util.LinkedList<org.eclipse.jdt.core.dom.ASTNode> downToRoot(@Nullable org.eclipse.jdt.core.dom.ASTNode node)
public static java.util.LinkedList<org.eclipse.jdt.core.dom.ASTNode> upToLeaves(@Nullable org.eclipse.jdt.core.dom.ASTNode node)
public static org.eclipse.jdt.core.dom.ASTNode firstDownToRoot(@Nullable org.eclipse.jdt.core.dom.ASTNode node, com.google.common.base.Predicate<org.eclipse.jdt.core.dom.ASTNode> predicate)
public static org.eclipse.jdt.core.dom.ASTNode firstUpToLeaves(@Nullable org.eclipse.jdt.core.dom.ASTNode node, com.google.common.base.Predicate<org.eclipse.jdt.core.dom.ASTNode> predicate)
public static org.eclipse.jdt.core.dom.ASTNode firstAncestor(@Nullable org.eclipse.jdt.core.dom.ASTNode node, com.google.common.base.Predicate<org.eclipse.jdt.core.dom.ASTNode> predicate)
public static org.eclipse.jdt.core.dom.ASTNode firstDescendant(@Nullable org.eclipse.jdt.core.dom.ASTNode node, com.google.common.base.Predicate<org.eclipse.jdt.core.dom.ASTNode> predicate)
public static java.util.Map<java.lang.String,java.lang.Object> genericProperties(org.eclipse.jdt.core.dom.ASTNode node)
public static java.util.List<org.eclipse.jdt.core.dom.StructuralPropertyDescriptor> structuralProperties(org.eclipse.jdt.core.dom.ASTNode node)
public static java.lang.String source(org.eclipse.jdt.core.dom.ASTNode node, NodeRangeType range)
public static boolean hasSource(org.eclipse.jdt.core.dom.ASTNode node)
public static boolean isRoot(@Nullable org.eclipse.jdt.core.dom.ASTNode node)
public static boolean isParent(@Nullable org.eclipse.jdt.core.dom.ASTNode node, @Nullable org.eclipse.jdt.core.dom.ASTNode parent)
public static boolean isChild(@Nullable org.eclipse.jdt.core.dom.ASTNode node, @Nullable org.eclipse.jdt.core.dom.ASTNode child)
public static boolean isAncestor(@Nullable org.eclipse.jdt.core.dom.ASTNode node, @Nullable org.eclipse.jdt.core.dom.ASTNode ancestor)
public static boolean isDescendant(@Nullable org.eclipse.jdt.core.dom.ASTNode node, @Nullable org.eclipse.jdt.core.dom.ASTNode descendant)
public static boolean isProblematic(org.eclipse.jdt.core.dom.ASTNode node)
public static boolean isProblematicTree(org.eclipse.jdt.core.dom.ASTNode node)
public static java.lang.Class<? extends org.eclipse.jdt.core.dom.ASTNode> toClass(@Nullable org.eclipse.jdt.core.dom.ASTNode node)
public static NodeType toType(@Nullable org.eclipse.jdt.core.dom.ASTNode node)
public static java.lang.String toTypeString(@Nullable org.eclipse.jdt.core.dom.ASTNode node)