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.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 com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration implements com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description JavaParserTypeParameter(com.github.javaparser.ast.type.TypeParameter wrappedNode, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration>
containerType()
boolean
equals(Object o)
List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration>
getAllFields()
List<com.github.javaparser.resolution.types.ResolvedReferenceType>
getAncestors(boolean acceptIncompleteList)
List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration.Bound>
getBounds()
List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration>
getConstructors()
com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
getContainer()
String
getContainerId()
String
getContainerQualifiedName()
Context
getContext()
Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration>
getDeclaredMethods()
com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
getField(String name)
String
getName()
String
getQualifiedName()
List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration>
getTypeParameters()
com.github.javaparser.resolution.types.ResolvedType
getUsage(com.github.javaparser.ast.Node node)
com.github.javaparser.ast.type.TypeParameter
getWrappedNode()
Returns the JavaParser node associated with this JavaParserTypeParameter.boolean
hasDirectlyAnnotation(String canonicalName)
boolean
hasField(String name)
int
hashCode()
boolean
isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
boolean
isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
boolean
isTypeParameter()
com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration>
solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes)
String
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, hasName, isEnumConstant, isField, isMethod, isParameter, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getVisibleField, getVisibleFields, hasAnnotation, hasVisibleField
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
asClass, asEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, internalTypes, isAnonymousClass, isClass, isEnum, isInterface, isType
-
-
-
-
Method Detail
-
getDeclaredMethods
public Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
- Specified by:
getDeclaredMethods
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
solveMethod
public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes)
-
getName
public String getName()
- Specified by:
getName
in interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
- Specified by:
getName
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
isAssignableBy
public boolean isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
- Specified by:
isAssignableBy
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getContainerQualifiedName
public String getContainerQualifiedName()
- Specified by:
getContainerQualifiedName
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
getContainerId
public String getContainerId()
- Specified by:
getContainerId
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
getContainer
public com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable getContainer()
- Specified by:
getContainer
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
getQualifiedName
public String getQualifiedName()
- Specified by:
getQualifiedName
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
- Specified by:
getQualifiedName
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
getBounds
public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration.Bound> getBounds()
- Specified by:
getBounds
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
-
getContext
public 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:
isAssignableBy
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getField
public com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration getField(String name)
- Specified by:
getField
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
hasField
public boolean hasField(String name)
- Specified by:
hasField
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getAllFields
public List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
- Specified by:
getAllFields
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getAncestors
public List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
- Specified by:
getAncestors
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
isTypeParameter
public boolean isTypeParameter()
- Specified by:
isTypeParameter
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
hasDirectlyAnnotation
public boolean hasDirectlyAnnotation(String canonicalName)
- Specified by:
hasDirectlyAnnotation
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
getTypeParameters
public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
- Specified by:
getTypeParameters
in 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.
-
containerType
public Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
- Specified by:
containerType
in interfacecom.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
-
getConstructors
public List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()
- Specified by:
getConstructors
in interfacecom.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
-
-