Detector.JavaPsiScanner APIs instead@Deprecated public abstract static class JavaParser.ResolvedClass extends JavaParser.ResolvedNode
| Constructor and Description |
|---|
ResolvedClass()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Iterable<JavaParser.ResolvedMethod> |
getConstructors()
Deprecated.
|
abstract JavaParser.ResolvedClass |
getContainingClass()
Deprecated.
|
abstract JavaParser.ResolvedField |
getField(java.lang.String name,
boolean includeInherited)
Deprecated.
Returns the named field defined in this class, or optionally inherited from a superclass
|
abstract java.lang.Iterable<JavaParser.ResolvedField> |
getFields(boolean includeInherited)
Deprecated.
Returns the fields defined in this class, and optionally any fields declared in any superclasses as well
|
abstract java.lang.Iterable<JavaParser.ResolvedClass> |
getInterfaces()
Deprecated.
|
abstract java.lang.Iterable<JavaParser.ResolvedMethod> |
getMethods(boolean includeInherited)
Deprecated.
Returns the methods defined in this class, and optionally any methods inherited from any superclasses as well
|
abstract java.lang.Iterable<JavaParser.ResolvedMethod> |
getMethods(java.lang.String name,
boolean includeInherited)
Deprecated.
Returns the methods of a given name defined in this class, and optionally any methods inherited from any superclasses as well
|
abstract java.lang.String |
getName()
Deprecated.
Returns the fully qualified name of this class
|
abstract JavaParser.ResolvedPackage |
getPackage()
Deprecated.
Returns the package containing this class
|
java.lang.String |
getPackageName()
Deprecated.
Returns the package name of this class
|
abstract java.lang.String |
getSimpleName()
Deprecated.
Returns the simple name of this class
|
abstract JavaParser.ResolvedClass |
getSuperClass()
Deprecated.
|
JavaParser.TypeDescriptor |
getType()
Deprecated.
|
abstract boolean |
isEnum()
Deprecated.
|
abstract boolean |
isImplementing(java.lang.String name,
boolean strict)
Deprecated.
Determines whether this is implementing the given interface.
|
abstract boolean |
isInheritingFrom(java.lang.String name,
boolean strict)
Deprecated.
Determines whether this class extends or implements the class of the given name.
|
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)
|
abstract boolean |
isInterface()
Deprecated.
|
abstract boolean |
isSubclassOf(java.lang.String name,
boolean strict)
Deprecated.
Determines whether this class extends the given name.
|
abstract boolean |
matches(java.lang.String name)
Deprecated.
Returns whether this class' fully qualified name matches the given name
|
findAstNode, getAnnotation, getAnnotations, getModifiers, getSignature, toString@NonNull public abstract java.lang.String getName()
getName in class JavaParser.ResolvedNode@NonNull public abstract java.lang.String getSimpleName()
@NonNull public java.lang.String getPackageName()
public abstract boolean matches(@NonNull
java.lang.String name)
@Nullable public abstract JavaParser.ResolvedClass getSuperClass()
@NonNull public abstract java.lang.Iterable<JavaParser.ResolvedClass> getInterfaces()
@Nullable public abstract JavaParser.ResolvedClass getContainingClass()
public abstract boolean isInterface()
public abstract boolean isEnum()
public JavaParser.TypeDescriptor getType()
public abstract boolean isSubclassOf(@NonNull
java.lang.String name,
boolean strict)
The target must be a class; to check whether this class extends an interface,
use isImplementing(String,boolean) instead. If you're not sure, use
isInheritingFrom(String, boolean).
name - the fully qualified class namestrict - if true, do not consider a class to be extending itselfpublic abstract boolean isImplementing(@NonNull
java.lang.String name,
boolean strict)
The target must be an interface; to check whether this class extends a class,
use isSubclassOf(String, boolean) instead. If you're not sure, use
isInheritingFrom(String, boolean).
name - the fully qualified interface namestrict - if true, do not consider a class to be extending itselfpublic abstract boolean isInheritingFrom(@NonNull
java.lang.String name,
boolean strict)
For performance reasons, if you know that the target is a class, consider using
isSubclassOf(String, boolean) instead, and if the target is an interface,
consider using isImplementing(String,boolean).
name - the fully qualified class namestrict - if true, do not consider a class to be inheriting from itself@NonNull public abstract java.lang.Iterable<JavaParser.ResolvedMethod> getConstructors()
@NonNull public abstract java.lang.Iterable<JavaParser.ResolvedMethod> getMethods(boolean includeInherited)
@NonNull public abstract java.lang.Iterable<JavaParser.ResolvedMethod> getMethods(@NonNull java.lang.String name, boolean includeInherited)
@NonNull public abstract java.lang.Iterable<JavaParser.ResolvedField> getFields(boolean includeInherited)
@Nullable public abstract JavaParser.ResolvedField getField(@NonNull java.lang.String name, boolean includeInherited)
@Nullable public abstract JavaParser.ResolvedPackage getPackage()
public boolean isInPackage(@NonNull
java.lang.String pkg,
boolean includeSubPackages)
JavaParser.ResolvedNodeisInPackage in class JavaParser.ResolvedNodepkg - the package nameincludeSubPackages - whether to include subpackages