Class AbstractTypeDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
- All Implemented Interfaces:
AssociableToAST
,ResolvedDeclaration
,ResolvedReferenceTypeDeclaration
,ResolvedTypeDeclaration
,ResolvedTypeParametrizable
- Direct Known Subclasses:
AbstractClassDeclaration
,JavaParserAnnotationDeclaration
,JavaParserEnumDeclaration
,JavaParserInterfaceDeclaration
,JavaParserTypeParameter
,JavaParserTypeVariableDeclaration
,JavassistAnnotationDeclaration
,JavassistEnumDeclaration
,JavassistInterfaceDeclaration
,ReflectionAnnotationDeclaration
,ReflectionEnumDeclaration
,ReflectionInterfaceDeclaration
public abstract class AbstractTypeDeclaration
extends Object
implements ResolvedReferenceTypeDeclaration
Common ancestor for most types.
-
Field Summary
Fields inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
breadthFirstFunc, depthFirstFunc, JAVA_LANG_ENUM, JAVA_LANG_OBJECT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Set<MethodUsage>
Return a list of all the methods declared of this type declaration, either declared or inherited.final boolean
This means that the type has a functional method.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, toAst
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asPattern, getName, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isVariable
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllAncestors, getAllFields, getAllNonStaticFields, getAllStaticFields, getAncestors, getAncestors, getConstructors, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredFields, getDeclaredMethods, getField, getVisibleField, getVisibleFields, hasAnnotation, hasDirectlyAnnotation, hasField, hasVisibleField, isAssignableBy, isAssignableBy, isInheritedAnnotation, isJavaLangEnum, isJavaLangObject, isReferenceType
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
asAnnotation, asClass, asEnum, asInterface, asType, asTypeParameter, containerType, getClassName, getId, getInternalType, getPackageName, getQualifiedName, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isClass, isEnum, isInterface, isType, isTypeParameter
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
getTypeParameters, isGeneric
-
Constructor Details
-
AbstractTypeDeclaration
public AbstractTypeDeclaration()
-
-
Method Details
-
getAllMethods
Description copied from interface:ResolvedReferenceTypeDeclaration
Return a list of all the methods declared of this type declaration, either declared or inherited. Note that it should not include overridden methods.- Specified by:
getAllMethods
in interfaceResolvedReferenceTypeDeclaration
-
isFunctionalInterface
public final boolean isFunctionalInterface()Description copied from interface:ResolvedReferenceTypeDeclaration
This means that the type has a functional method. Conceptually, a functional interface has exactly one abstract method. Typically these classes has the FunctionInterface annotation but this is not mandatory.- Specified by:
isFunctionalInterface
in interfaceResolvedReferenceTypeDeclaration
-