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_IO_SERIALIZABLE, JAVA_LANG_COMPARABLE, 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 booleanThis 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, waitMethods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, toAstMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asPattern, getName, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isVariableMethods 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, isReferenceTypeMethods 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, isTypeParameterMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
getTypeParameters, isGeneric
-
Constructor Details
-
AbstractTypeDeclaration
public AbstractTypeDeclaration()
-
-
Method Details
-
getAllMethods
Description copied from interface:ResolvedReferenceTypeDeclarationReturn 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:
getAllMethodsin interfaceResolvedReferenceTypeDeclaration
-
isFunctionalInterface
public final boolean isFunctionalInterface()Description copied from interface:ResolvedReferenceTypeDeclarationThis 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:
isFunctionalInterfacein interfaceResolvedReferenceTypeDeclaration
-