Top Description Methods
com.github.javaparser.resolution.declarations

public Interface ResolvedClassDeclaration

extends ResolvedReferenceTypeDeclaration, ResolvedTypeParametrizable, HasAccessSpecifier, AssociableToAST<Node>
Imports
com.github.javaparser.ast.Node, com.github.javaparser.resolution.types.ResolvedReferenceType, java.util.List

Declaration of a Class (not an interface or an enum). Note that it can be associated to a Node AST because anonymous class declarations return an incompatible node type, compared to classic class declarations.
Author
Federico Tomassetti

Method Summary

Modifier and TypeMethod and Description
public List<ResolvedReferenceType>
getAllInterfaces()

Return all the interfaces implemented by this class, either directly or indirectly, including the interfaces extended by interfaces it implements.

public List<ResolvedReferenceType>
getAllSuperClasses()

Get all superclasses, with all the type typeParametersValues expressed as functions of the type typeParametersValues of this declaration.

public List<ResolvedConstructorDeclaration>
public List<ResolvedReferenceType>
getInterfaces()

Return all the interfaces implemented directly by this class.

public ResolvedReferenceType
getSuperClass()

This is a ReferenceTypeUsage because it could contain type typeParametersValues.

public default boolean
isClass()

Overrides default com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration.isClass.

This method should always return true.
Inherited from com.github.javaparser.resolution.declarations.AssociableToAST:
toAst
Inherited from com.github.javaparser.resolution.declarations.HasAccessSpecifier:
accessSpecifier
Inherited from com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration:
asReferenceTypecanBeAssignedTofindTypeParametergetAllAncestorsgetAllFieldsgetAllMethodsgetAllNonStaticFieldsgetAllStaticFieldsgetAncestorsgetAncestorsgetDeclaredFieldsgetDeclaredMethodsgetFieldgetVisibleFieldgetVisibleFieldshasAnnotationhasDirectlyAnnotationhasFieldhasVisibleFieldisAssignableByisAssignableByisFunctionalInterface
Inherited from com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable:
findTypeParametergetTypeParametersisGeneric

Method Detail

getAllInterfacesback to summary
public List<ResolvedReferenceType> getAllInterfaces()

Return all the interfaces implemented by this class, either directly or indirectly, including the interfaces extended by interfaces it implements.

Get all interfaces, with all the type typeParametersValues expressed as functions of the type typeParametersValues of this declaration.

getAllSuperClassesback to summary
public List<ResolvedReferenceType> getAllSuperClasses()

Get all superclasses, with all the type typeParametersValues expressed as functions of the type typeParametersValues of this declaration.

getConstructorsback to summary
public List<ResolvedConstructorDeclaration> getConstructors()

Redeclares com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration.getConstructors.

List of constructors available for the class. This list should also include the default constructor.

Annotations
@Override
getInterfacesback to summary
public List<ResolvedReferenceType> getInterfaces()

Return all the interfaces implemented directly by this class. It does not include the interfaces implemented by superclasses or extended by the interfaces implemented.

getSuperClassback to summary
public ResolvedReferenceType getSuperClass()

This is a ReferenceTypeUsage because it could contain type typeParametersValues. For example: class A extends B.

Note that only the Object class should not have a superclass and therefore return null.

isClassback to summary
public default boolean isClass()

Overrides default com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration.isClass.

This method should always return true.

Annotations
@Override