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 TypeMethodDescriptionbooleangetAncestors(boolean acceptIncompleteList)getName()Returns the JavaParser node associated with this JavaParserTypeParameter.booleanhasDirectlyAnnotation(String canonicalName)booleaninthashCode()booleanbooleanisAssignableBy(ResolvedType type)booleanobject()solveMethod(String name, List<ResolvedType> parameterTypes)toString()Methods inherited from class com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
getAllMethods, isFunctionalInterfaceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asPattern, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllAncestors, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField, isJavaLangEnum, isJavaLangObjectMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
asAnnotation, asClass, asEnum, asInterface, asType, getId, getInternalType, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isClass, isEnum, isInterface, isTypeMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
declaredOnConstructor, declaredOnMethod, declaredOnType, getClassName, getLowerBound, getPackageName, getUpperBound, hasLowerBound, hasUpperBound, isBounded, isUnboundedMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
Constructor Details
-
JavaParserTypeParameter
-
-
Method Details
-
getDeclaredMethods
- Specified by:
getDeclaredMethodsin interfaceResolvedReferenceTypeDeclaration
-
solveMethod
public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> parameterTypes) -
equals
-
hashCode
public int hashCode() -
getName
- Specified by:
getNamein interfaceResolvedDeclaration- Specified by:
getNamein interfaceResolvedTypeParameterDeclaration
-
isAssignableBy
- Specified by:
isAssignableByin interfaceResolvedReferenceTypeDeclaration
-
getContainerQualifiedName
- Specified by:
getContainerQualifiedNamein interfaceResolvedTypeParameterDeclaration
-
getContainerId
- Specified by:
getContainerIdin interfaceResolvedTypeParameterDeclaration
-
getContainer
- Specified by:
getContainerin interfaceResolvedTypeParameterDeclaration
-
getQualifiedName
- Specified by:
getQualifiedNamein interfaceResolvedTypeDeclaration- Specified by:
getQualifiedNamein interfaceResolvedTypeParameterDeclaration
-
getBounds
- Specified by:
getBoundsin interfaceResolvedTypeParameterDeclaration
-
getContext
-
getUsage
-
isAssignableBy
- Specified by:
isAssignableByin interfaceResolvedReferenceTypeDeclaration
-
getField
- Specified by:
getFieldin interfaceResolvedReferenceTypeDeclaration
-
hasField
- Specified by:
hasFieldin interfaceResolvedReferenceTypeDeclaration
-
getAllFields
- Specified by:
getAllFieldsin interfaceResolvedReferenceTypeDeclaration
-
getAncestors
- Specified by:
getAncestorsin interfaceResolvedReferenceTypeDeclaration
-
isTypeParameter
public boolean isTypeParameter()- Specified by:
isTypeParameterin interfaceResolvedTypeDeclaration
-
asTypeParameter
- Specified by:
asTypeParameterin interfaceResolvedTypeDeclaration
-
hasDirectlyAnnotation
- Specified by:
hasDirectlyAnnotationin interfaceResolvedReferenceTypeDeclaration
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceResolvedTypeParametrizable
-
getWrappedNode
Returns the JavaParser node associated with this JavaParserTypeParameter.- Returns:
- A visitable JavaParser node wrapped by this object.
-
toString
-
containerType
- Specified by:
containerTypein interfaceResolvedTypeDeclaration
-
getConstructors
- Specified by:
getConstructorsin interfaceResolvedReferenceTypeDeclaration
-
object
- Specified by:
objectin interfaceResolvedTypeParameterDeclaration
-