public abstract class GenParameterizable extends GenElement implements Parameterizable
| Constructor and Description |
|---|
GenParameterizable() |
GenParameterizable(Name simpleName) |
GenParameterizable(String simpleName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTypeParameter(TypeParameterElement aTypeParameter_) |
DeclaredType |
getDeclaredType(DeclaredType prototype,
Iterable<TypeMirror> resolvedTypeArgs) |
TypeParameterElement |
getOrCreateTypeParameter(TypeParameterElement otherTypeParam)
Gets or creates a type parameter with the same name and bounds as the given type parameter (typically from a superclass)
|
List<? extends TypeParameterElement> |
getTypeParameters() |
void |
removeTypeParameter(TypeParameterElement aTypeParameter_) |
protected abstract TypeMirror |
resolveTypeVariable(TypeVariable tv)
resolve the type variable "locally" , for example by using type arguments of the method / class
|
TypeMirror |
resolveTypeVariables(TypeMirror type) |
void |
setTypeParameters(List<? extends TypeParameterElement> typeParameters) |
accept, add, addAnnotationMirror, addEnclosedElement, addModifier, asType, enclosedElementComparator, enclosingParameterizable, getAnnotationMirrors, getComment, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, removeAnnotationMirror, removeEnclosedElement, removeModifier, resolveContainedTypeVariables, setAnnotationMirrors, setComment, setEnclosedElements, setEnclosingElement, setModifiers, setSimpleName, setSimpleName, setVisibilitygetAnnotation, getAnnotationsByTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, asType, equals, getAnnotation, getAnnotationMirrors, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, hashCodegetAnnotationsByTypepublic GenParameterizable(String simpleName)
public GenParameterizable(Name simpleName)
public GenParameterizable()
public DeclaredType getDeclaredType(DeclaredType prototype, Iterable<TypeMirror> resolvedTypeArgs)
public TypeMirror resolveTypeVariables(TypeMirror type)
protected abstract TypeMirror resolveTypeVariable(TypeVariable tv)
public TypeParameterElement getOrCreateTypeParameter(TypeParameterElement otherTypeParam)
public List<? extends TypeParameterElement> getTypeParameters()
getTypeParameters in interface Parameterizablepublic void addTypeParameter(TypeParameterElement aTypeParameter_)
public void removeTypeParameter(TypeParameterElement aTypeParameter_)
public void setTypeParameters(List<? extends TypeParameterElement> typeParameters)
Copyright © 2018. All rights reserved.