public final class MatchingNode<N extends org.eclipse.jdt.core.dom.ASTNode>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
N |
asNode() |
com.google.common.base.Optional<N> |
asOption() |
boolean |
equals(java.lang.Object o) |
MatchingNode<?> |
getParent() |
MatchingNode<?> |
getRoot() |
NodeType |
getType() |
int |
hashCode() |
static <N extends org.eclipse.jdt.core.dom.ASTNode> |
of(N node) |
java.lang.String |
toString() |
static <N extends org.eclipse.jdt.core.dom.ASTNode> |
unwrap(java.lang.Iterable<? extends MatchingNode<N>> nodes) |
static <N extends org.eclipse.jdt.core.dom.ASTNode> |
wrap(java.lang.Iterable<? extends N> nodes) |
public static <N extends org.eclipse.jdt.core.dom.ASTNode> MatchingNode<N> of(@Nullable N node)
public static <N extends org.eclipse.jdt.core.dom.ASTNode> java.util.List<MatchingNode<N>> wrap(java.lang.Iterable<? extends N> nodes)
public static <N extends org.eclipse.jdt.core.dom.ASTNode> java.util.List<N> unwrap(java.lang.Iterable<? extends MatchingNode<N>> nodes)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
@Nullable public N asNode()
public com.google.common.base.Optional<N> asOption()
public MatchingNode<?> getRoot()
public MatchingNode<?> getParent()
public NodeType getType()