Class JavaParserTypeParameter
java.lang.Object
com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserTypeParameter
- All Implemented Interfaces:
ResolvedDeclaration
,ResolvedReferenceTypeDeclaration
,ResolvedTypeDeclaration
,ResolvedTypeParameterDeclaration
,ResolvedTypeParametrizable
public class JavaParserTypeParameter
extends AbstractTypeDeclaration
implements ResolvedTypeParameterDeclaration
- Author:
- Federico Tomassetti
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
ResolvedTypeParameterDeclaration.Bound
-
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 TypeMethodDescriptionboolean
getAncestors(boolean acceptIncompleteList)
getName()
Returns the JavaParser node associated with this JavaParserTypeParameter.boolean
hasDirectlyAnnotation(String canonicalName)
boolean
int
hashCode()
boolean
boolean
isAssignableBy(ResolvedType type)
boolean
object()
solveMethod(String name, List<ResolvedType> parameterTypes)
toString()
Methods inherited from class com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
getAllMethods, isFunctionalInterface
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asPattern, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isVariable
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllAncestors, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isJavaLangEnum, isJavaLangObject
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
asAnnotation, asClass, asEnum, asInterface, asType, getId, getInternalType, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isClass, isEnum, isInterface, isType
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
declaredOnConstructor, declaredOnMethod, declaredOnType, getClassName, getLowerBound, getPackageName, getUpperBound, hasLowerBound, hasUpperBound, isBounded, isUnbounded
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
Constructor Details
-
JavaParserTypeParameter
-
-
Method Details
-
getDeclaredMethods
- Specified by:
getDeclaredMethods
in interfaceResolvedReferenceTypeDeclaration
-
solveMethod
public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> parameterTypes) -
equals
-
hashCode
public int hashCode() -
getName
- Specified by:
getName
in interfaceResolvedDeclaration
- Specified by:
getName
in interfaceResolvedTypeParameterDeclaration
-
isAssignableBy
- Specified by:
isAssignableBy
in interfaceResolvedReferenceTypeDeclaration
-
getContainerQualifiedName
- Specified by:
getContainerQualifiedName
in interfaceResolvedTypeParameterDeclaration
-
getContainerId
- Specified by:
getContainerId
in interfaceResolvedTypeParameterDeclaration
-
getContainer
- Specified by:
getContainer
in interfaceResolvedTypeParameterDeclaration
-
getQualifiedName
- Specified by:
getQualifiedName
in interfaceResolvedTypeDeclaration
- Specified by:
getQualifiedName
in interfaceResolvedTypeParameterDeclaration
-
getBounds
- Specified by:
getBounds
in interfaceResolvedTypeParameterDeclaration
-
getContext
-
getUsage
-
isAssignableBy
- Specified by:
isAssignableBy
in interfaceResolvedReferenceTypeDeclaration
-
getField
- Specified by:
getField
in interfaceResolvedReferenceTypeDeclaration
-
hasField
- Specified by:
hasField
in interfaceResolvedReferenceTypeDeclaration
-
getAllFields
- Specified by:
getAllFields
in interfaceResolvedReferenceTypeDeclaration
-
getAncestors
- Specified by:
getAncestors
in interfaceResolvedReferenceTypeDeclaration
-
isTypeParameter
public boolean isTypeParameter()- Specified by:
isTypeParameter
in interfaceResolvedTypeDeclaration
-
asTypeParameter
- Specified by:
asTypeParameter
in interfaceResolvedTypeDeclaration
-
hasDirectlyAnnotation
- Specified by:
hasDirectlyAnnotation
in interfaceResolvedReferenceTypeDeclaration
-
getTypeParameters
- Specified by:
getTypeParameters
in interfaceResolvedTypeParametrizable
-
getWrappedNode
Returns the JavaParser node associated with this JavaParserTypeParameter.- Returns:
- A visitable JavaParser node wrapped by this object.
-
toString
-
containerType
- Specified by:
containerType
in interfaceResolvedTypeDeclaration
-
getConstructors
- Specified by:
getConstructors
in interfaceResolvedReferenceTypeDeclaration
-
object
- Specified by:
object
in interfaceResolvedTypeParameterDeclaration
-