Class JavassistTypeParameter
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javassistmodel.JavassistTypeParameter
-
- All Implemented Interfaces:
AssociableToAST,ResolvedDeclaration,ResolvedTypeDeclaration,ResolvedTypeParameterDeclaration
public class JavassistTypeParameter extends java.lang.Object implements ResolvedTypeParameterDeclaration
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
ResolvedTypeParameterDeclaration.Bound
-
-
Field Summary
Fields Modifier and Type Field Description private ResolvedTypeParametrizablecontainerprivate TypeSolvertypeSolverprivate javassist.bytecode.SignatureAttribute.TypeParameterwrapped
-
Constructor Summary
Constructors Constructor Description JavassistTypeParameter(javassist.bytecode.SignatureAttribute.TypeParameter wrapped, ResolvedTypeParametrizable container, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<ResolvedReferenceTypeDeclaration>containerType()Get the ReferenceTypeDeclaration enclosing this declaration.booleanequals(java.lang.Object o)java.util.List<ResolvedTypeParameterDeclaration.Bound>getBounds()The bounds specified for the type parameter.ResolvedTypeParametrizablegetContainer()The TypeParametrizable of the container.java.lang.StringgetContainerId()The ID of the container.java.lang.StringgetContainerQualifiedName()The qualified name of the container.java.lang.StringgetName()Name of the type parameter.inthashCode()ResolvedReferenceTypeobject()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, 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.ResolvedTypeDeclaration
asAnnotation, asClass, asEnum, asInterface, asRecord, asReferenceType, asType, getId, getInternalType, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isClass, isEnum, isInterface, isRecord, isReferenceType, isType
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration
asTypeParameter, declaredOnConstructor, declaredOnMethod, declaredOnType, getClassName, getLowerBound, getPackageName, getQualifiedName, getUpperBound, hasBound, hasLowerBound, hasUpperBound, isBounded, isTypeParameter, isUnbounded
-
-
-
-
Field Detail
-
wrapped
private javassist.bytecode.SignatureAttribute.TypeParameter wrapped
-
typeSolver
private TypeSolver typeSolver
-
container
private ResolvedTypeParametrizable container
-
-
Constructor Detail
-
JavassistTypeParameter
public JavassistTypeParameter(javassist.bytecode.SignatureAttribute.TypeParameter wrapped, ResolvedTypeParametrizable container, TypeSolver typeSolver)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getName
public java.lang.String getName()
Description copied from interface:ResolvedTypeParameterDeclarationName of the type parameter.- Specified by:
getNamein interfaceResolvedDeclaration- Specified by:
getNamein interfaceResolvedTypeParameterDeclaration
-
getContainerQualifiedName
public java.lang.String getContainerQualifiedName()
Description copied from interface:ResolvedTypeParameterDeclarationThe qualified name of the container.- Specified by:
getContainerQualifiedNamein interfaceResolvedTypeParameterDeclaration
-
getContainerId
public java.lang.String getContainerId()
Description copied from interface:ResolvedTypeParameterDeclarationThe ID of the container. See TypeContainer.getId- Specified by:
getContainerIdin interfaceResolvedTypeParameterDeclaration
-
getContainer
public ResolvedTypeParametrizable getContainer()
Description copied from interface:ResolvedTypeParameterDeclarationThe TypeParametrizable of the container. Can be either a ReferenceTypeDeclaration or a MethodLikeDeclaration- Specified by:
getContainerin interfaceResolvedTypeParameterDeclaration
-
getBounds
public java.util.List<ResolvedTypeParameterDeclaration.Bound> getBounds()
Description copied from interface:ResolvedTypeParameterDeclarationThe bounds specified for the type parameter. For example: "extends A" or "super B"- Specified by:
getBoundsin interfaceResolvedTypeParameterDeclaration
-
containerType
public java.util.Optional<ResolvedReferenceTypeDeclaration> containerType()
Description copied from interface:ResolvedTypeDeclarationGet the ReferenceTypeDeclaration enclosing this declaration.- Specified by:
containerTypein interfaceResolvedTypeDeclaration
-
object
public ResolvedReferenceType object()
- Specified by:
objectin interfaceResolvedTypeParameterDeclaration
-
-