public static class Symbol.TypeVariableSymbol extends Symbol.TypeSymbol implements TypeParameterElement
Symbol.ClassSymbol, Symbol.Completer, Symbol.CompletionFailure, Symbol.DelegatedSymbol<T extends Symbol>, Symbol.DynamicMethodSymbol, Symbol.MethodSymbol, Symbol.OperatorSymbol, Symbol.PackageSymbol, Symbol.TypeSymbol, Symbol.TypeVariableSymbol, Symbol.VarSymbol, Symbol.Visitor<R,P>
completer, erasure_field, flags_field, kind, metadata, name, owner, type
Constructor and Description |
---|
TypeVariableSymbol(long flags,
Name name,
Type type,
Symbol owner) |
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(ElementVisitor<R,P> v,
P p)
Applies a visitor to this element.
|
List<Attribute.Compound> |
getAnnotationMirrors()
This is the implementation for
javax.lang.model.element.Element.getAnnotationMirrors() . |
<A extends Annotation> |
getAttribute(Class<A> annoType) |
List<Type> |
getBounds()
Returns the bounds of this type parameter.
|
Symbol |
getGenericElement()
Returns the generic class, interface, method, or constructor that is
parameterized by this type parameter.
|
ElementKind |
getKind()
Returns the
kind of this element. |
accept, formFlatName, formFullName, getEnclosedElements, precedes
annotationsPendingCompletion, appendAttributes, appendClassInitTypeAttributes, appendInitTypeAttributes, appendTypeAttributesWithCompletion, appendUniqueTypeAttributes, asMemberOf, asType, attribute, baseSymbol, clone, complete, enclClass, erasure, exists, externalType, flags, flatName, getClassInitTypeAttributes, getDeclarationAttributes, getEnclosingElement, getInitTypeAttributes, getMetadata, getModifiers, getQualifiedName, getRawAttributes, getRawTypeAttributes, getSimpleName, getTypeParameters, hasAnnotations, hasOuterInstance, hasTypeAnnotations, isAnonymous, isConstructor, isDeprecated, isEnclosedBy, isEnum, isInheritedIn, isInner, isInterface, isLocal, isMemberOf, isPrivate, isStatic, isSubClass, location, location, members, outermostClass, overrides, packge, prependAttributes, resetAnnotations, setAttributes, setDeclarationAttributes, setDeclarationAttributesWithCompletion, setTypeAttributes, toString
getAnnotation, getAnnotationsByType, getInheritedAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEnclosingElement
asType, equals, getAnnotation, getEnclosedElements, getModifiers, getSimpleName, hashCode
getAnnotationsByType
public ElementKind getKind()
Element
kind
of this element.public Symbol getGenericElement()
TypeParameterElement
getGenericElement
in interface TypeParameterElement
public List<Type> getBounds()
TypeParameterElement
extends
clause
used to declare this type parameter.
If no explicit extends
clause was used,
then java.lang.Object
is considered to be the sole bound.getBounds
in interface TypeParameterElement
public List<Attribute.Compound> getAnnotationMirrors()
Symbol
javax.lang.model.element.Element.getAnnotationMirrors()
.getAnnotationMirrors
in interface AnnotatedConstruct
getAnnotationMirrors
in interface Element
getAnnotationMirrors
in class Symbol
public <A extends Annotation> Attribute.Compound getAttribute(Class<A> annoType)
getAttribute
in class AnnoConstruct
public <R,P> R accept(ElementVisitor<R,P> v, P p)
Element
Copyright © 2015. All rights reserved.