Class JavaParserTypeVariableDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
-
- com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserTypeVariableDeclaration
-
- All Implemented Interfaces:
AssociableToAST,ResolvedDeclaration,ResolvedReferenceTypeDeclaration,ResolvedTypeDeclaration,ResolvedTypeParametrizable
public class JavaParserTypeVariableDeclaration extends AbstractTypeDeclaration
- Author:
- Federico Tomassetti
-
-
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
Constructors Constructor Description JavaParserTypeVariableDeclaration(TypeParameter wrappedNode, TypeSolver typeSolver)
-
Method Summary
-
Methods inherited from class com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
getAllMethods, isFunctionalInterface, isRecordType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asTypePattern, hasName, isEnumConstant, isField, isMethod, isParameter, isTypePattern, isVariable
-
Methods 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, isReferenceType
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
asAnnotation, asClass, asEnum, asInterface, asRecord, asType, getId, getInternalType, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isEnum, isRecord
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
-
-
-
Constructor Detail
-
JavaParserTypeVariableDeclaration
public JavaParserTypeVariableDeclaration(TypeParameter wrappedNode, TypeSolver typeSolver)
-
-
Method Detail
-
isAssignableBy
public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other)
-
getPackageName
public String getPackageName()
-
getClassName
public String getClassName()
-
getQualifiedName
public String getQualifiedName()
-
getContext
public Context getContext()
-
solveMethod
public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> parameterTypes)
-
getUsage
public ResolvedType getUsage(Node node)
-
isAssignableBy
public boolean isAssignableBy(ResolvedType type)
-
isTypeParameter
public boolean isTypeParameter()
-
getField
public ResolvedFieldDeclaration getField(String name)
-
hasField
public boolean hasField(String name)
-
getAllFields
public List<ResolvedFieldDeclaration> getAllFields()
-
getAncestors
public List<ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
-
getDeclaredMethods
public Set<ResolvedMethodDeclaration> getDeclaredMethods()
-
getName
public String getName()
-
isType
public boolean isType()
-
hasDirectlyAnnotation
public boolean hasDirectlyAnnotation(String canonicalName)
-
isClass
public boolean isClass()
-
isInterface
public boolean isInterface()
-
getTypeParameters
public List<ResolvedTypeParameterDeclaration> getTypeParameters()
-
asTypeParameter
public ResolvedTypeParameterDeclaration asTypeParameter()
-
getWrappedNode
public TypeParameter getWrappedNode()
Returns the JavaParser node associated with this JavaParserTypeVariableDeclaration.- Returns:
- A visitable JavaParser node wrapped by this object.
-
containerType
public Optional<ResolvedReferenceTypeDeclaration> containerType()
-
getConstructors
public List<ResolvedConstructorDeclaration> getConstructors()
-
-