Class JavaParserTypeParameter
java.lang.Object
com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserTypeParameter
- All Implemented Interfaces:
com.github.javaparser.resolution.declarations.AssociableToAST, com.github.javaparser.resolution.declarations.ResolvedDeclaration, com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration, com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration, com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration, com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
public class JavaParserTypeParameter
extends AbstractTypeDeclaration
implements com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
- Author:
- Federico Tomassetti
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration.Bound -
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, JAVA_LANG_RECORD -
Constructor Summary
ConstructorsConstructorDescriptionJavaParserTypeParameter(com.github.javaparser.ast.type.TypeParameter wrappedNode, com.github.javaparser.resolution.TypeSolver typeSolver) -
Method Summary
Modifier and TypeMethodDescriptioncom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclarationOptional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> booleanList<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList) List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration.Bound> List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> com.github.javaparser.resolution.declarations.ResolvedTypeParametrizablecom.github.javaparser.resolution.ContextSet<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> com.github.javaparser.resolution.declarations.ResolvedFieldDeclarationgetName()List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> com.github.javaparser.resolution.types.ResolvedTypegetUsage(com.github.javaparser.ast.Node node) com.github.javaparser.ast.type.TypeParameterReturns the JavaParser node associated with this JavaParserTypeParameter.booleanhasDirectlyAnnotation(String canonicalName) booleaninthashCode()booleanisAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other) booleanisAssignableBy(com.github.javaparser.resolution.types.ResolvedType type) booleancom.github.javaparser.resolution.types.ResolvedReferenceTypeobject()com.github.javaparser.resolution.model.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes) Optional<com.github.javaparser.ast.Node> toAst()toString()Methods inherited from class AbstractTypeDeclaration
getAllMethods, isFunctionalInterface, isRecordTypeMethods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAstMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asTypePattern, hasName, isArrayLength, isEnumConstant, isField, isMethod, isParameter, isTypePattern, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllAncestors, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isInheritedAnnotation, isJavaLangEnum, isJavaLangObject, isJavaLangRecord, isReferenceTypeMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
asAnnotation, asClass, asEnum, asInterface, asRecord, asType, getId, getInternalType, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isClass, isEnum, isInterface, isRecord, isTypeMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
declaredOnConstructor, declaredOnMethod, declaredOnType, getClassName, getLowerBound, getPackageName, getUpperBound, hasBound, hasLowerBound, hasUpperBound, isBounded, isUnboundedMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
Constructor Details
-
JavaParserTypeParameter
public JavaParserTypeParameter(com.github.javaparser.ast.type.TypeParameter wrappedNode, com.github.javaparser.resolution.TypeSolver typeSolver)
-
-
Method Details
-
getDeclaredMethods
public Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()- Specified by:
getDeclaredMethodsin interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
solveMethod
-
equals
-
hashCode
-
getName
- Specified by:
getNamein interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration- Specified by:
getNamein interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
isAssignableBy
public boolean isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other) - Specified by:
isAssignableByin interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getContainerQualifiedName
- Specified by:
getContainerQualifiedNamein interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
getContainerId
- Specified by:
getContainerIdin interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
getContainer
public com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable getContainer()- Specified by:
getContainerin interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
getQualifiedName
- Specified by:
getQualifiedNamein interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration- Specified by:
getQualifiedNamein interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
getBounds
public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration.Bound> getBounds()- Specified by:
getBoundsin interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
getContext
public com.github.javaparser.resolution.Context getContext() -
getUsage
public com.github.javaparser.resolution.types.ResolvedType getUsage(com.github.javaparser.ast.Node node) -
isAssignableBy
public boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type) - Specified by:
isAssignableByin interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getField
- Specified by:
getFieldin interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
hasField
- Specified by:
hasFieldin interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getAllFields
- Specified by:
getAllFieldsin interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getAncestors
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList) - Specified by:
getAncestorsin interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
isTypeParameter
public boolean isTypeParameter()- Specified by:
isTypeParameterin interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration- Specified by:
isTypeParameterin interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
asTypeParameter
public com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration asTypeParameter()- Specified by:
asTypeParameterin interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration- Specified by:
asTypeParameterin interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
hasDirectlyAnnotation
- Specified by:
hasDirectlyAnnotationin interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getTypeParameters
public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()- Specified by:
getTypeParametersin interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
-
getWrappedNode
public com.github.javaparser.ast.type.TypeParameter getWrappedNode()Returns the JavaParser node associated with this JavaParserTypeParameter.- Returns:
- A visitable JavaParser node wrapped by this object.
-
toString
-
containerType
public Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()- Specified by:
containerTypein interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getConstructors
public List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()- Specified by:
getConstructorsin interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
object
public com.github.javaparser.resolution.types.ResolvedReferenceType object()- Specified by:
objectin interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
toAst
- Specified by:
toAstin interfacecom.github.javaparser.resolution.declarations.AssociableToAST
-