Detector.JavaPsiScanner
APIs instead@Deprecated
public abstract static class JavaParser.ResolvedNode
extends java.lang.Object
Constructor and Description |
---|
ResolvedNode()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
lombok.ast.Node |
findAstNode()
Deprecated.
Attempts to find the corresponding AST node, if possible.
|
JavaParser.ResolvedAnnotation |
getAnnotation(java.lang.String type)
Deprecated.
Searches for the annotation of the given type on this node
|
abstract java.lang.Iterable<JavaParser.ResolvedAnnotation> |
getAnnotations()
Deprecated.
Returns any annotations defined on this node
|
abstract int |
getModifiers()
Deprecated.
|
abstract java.lang.String |
getName()
Deprecated.
|
abstract java.lang.String |
getSignature()
Deprecated.
Returns the signature of the resolved node
|
boolean |
isInPackage(java.lang.String pkg,
boolean includeSubPackages)
Deprecated.
Returns true if this element is in the given package (or optionally, in one of its sub
packages)
|
java.lang.String |
toString()
Deprecated.
|
@NonNull public abstract java.lang.String getName()
public abstract java.lang.String getSignature()
public abstract int getModifiers()
public java.lang.String toString()
toString
in class java.lang.Object
@NonNull public abstract java.lang.Iterable<JavaParser.ResolvedAnnotation> getAnnotations()
@Nullable public JavaParser.ResolvedAnnotation getAnnotation(@NonNull java.lang.String type)
type
- the fully qualified name of the annotation to checkpublic boolean isInPackage(@NonNull java.lang.String pkg, boolean includeSubPackages)
pkg
- the package nameincludeSubPackages
- whether to include subpackages@Nullable public lombok.ast.Node findAstNode()
Note that looking up the AST node can result in different instances for each lookup.