Class JavaParserTypeVariableDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserTypeVariableDeclaration
- All Implemented Interfaces:
AssociableToAST<TypeParameter>,ResolvedDeclaration,ResolvedReferenceTypeDeclaration,ResolvedTypeDeclaration,ResolvedTypeParametrizable
public class JavaParserTypeVariableDeclaration
extends AbstractTypeDeclaration
implements AssociableToAST<TypeParameter>
- Author:
- Federico Tomassetti
-
Field Summary
Fields inherited from interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration
breadthFirstFunc, depthFirstFunc, JAVA_LANG_ENUM, JAVA_LANG_OBJECT -
Constructor Summary
ConstructorsConstructorDescriptionJavaParserTypeVariableDeclaration(TypeParameter wrappedNode, TypeSolver typeSolver) -
Method Summary
Modifier and TypeMethodDescriptiongetAncestors(boolean acceptIncompleteList)getName()Returns the JavaParser node associated with this JavaParserTypeVariableDeclaration.booleanhasDirectlyAnnotation(String canonicalName)booleanbooleanbooleanisAssignableBy(ResolvedType type)booleanisClass()booleanbooleanisType()booleansolveMethod(String name, List<ResolvedType> parameterTypes)toAst()toString()Methods inherited from class com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
getAllMethods, isFunctionalInterfaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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, isEnumMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
Constructor Details
-
JavaParserTypeVariableDeclaration
-
-
Method Details
-
isAssignableBy
- Specified by:
isAssignableByin interfaceResolvedReferenceTypeDeclaration
-
getPackageName
- Specified by:
getPackageNamein interfaceResolvedTypeDeclaration
-
getClassName
- Specified by:
getClassNamein interfaceResolvedTypeDeclaration
-
getQualifiedName
- Specified by:
getQualifiedNamein interfaceResolvedTypeDeclaration
-
getContext
-
toString
-
solveMethod
public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> parameterTypes) -
getUsage
-
isAssignableBy
- Specified by:
isAssignableByin interfaceResolvedReferenceTypeDeclaration
-
isTypeParameter
public boolean isTypeParameter()- Specified by:
isTypeParameterin interfaceResolvedTypeDeclaration
-
getField
- Specified by:
getFieldin interfaceResolvedReferenceTypeDeclaration
-
hasField
- Specified by:
hasFieldin interfaceResolvedReferenceTypeDeclaration
-
getAllFields
- Specified by:
getAllFieldsin interfaceResolvedReferenceTypeDeclaration
-
getAncestors
- Specified by:
getAncestorsin interfaceResolvedReferenceTypeDeclaration
-
getDeclaredMethods
- Specified by:
getDeclaredMethodsin interfaceResolvedReferenceTypeDeclaration
-
getName
- Specified by:
getNamein interfaceResolvedDeclaration
-
isType
public boolean isType()- Specified by:
isTypein interfaceResolvedDeclaration- Specified by:
isTypein interfaceResolvedTypeDeclaration
-
hasDirectlyAnnotation
- Specified by:
hasDirectlyAnnotationin interfaceResolvedReferenceTypeDeclaration
-
isClass
public boolean isClass()- Specified by:
isClassin interfaceResolvedTypeDeclaration
-
isInterface
public boolean isInterface()- Specified by:
isInterfacein interfaceResolvedTypeDeclaration
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceResolvedTypeParametrizable
-
asTypeParameter
- Specified by:
asTypeParameterin interfaceResolvedTypeDeclaration
-
getWrappedNode
Returns the JavaParser node associated with this JavaParserTypeVariableDeclaration.- Returns:
- A visitable JavaParser node wrapped by this object.
-
containerType
- Specified by:
containerTypein interfaceResolvedTypeDeclaration
-
getConstructors
- Specified by:
getConstructorsin interfaceResolvedReferenceTypeDeclaration
-
toAst
- Specified by:
toAstin interfaceAssociableToAST<TypeParameter>
-