public abstract class GenExecutableElement extends GenJava8ExecutableElement implements ExecutableElement
| Constructor and Description |
|---|
GenExecutableElement() |
GenExecutableElement(Name simpleName) |
GenExecutableElement(String simpleName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addModifier(Modifier m) |
void |
addParameter(VariableElement ve) |
void |
addThrownType(TypeMirror aThrownType_) |
CodeBody |
getBody() |
AnnotationValue |
getDefaultValue() |
List<? extends VariableElement> |
getParameters() |
TypeMirror |
getReturnType() |
List<? extends TypeMirror> |
getThrownTypes() |
boolean |
isVarArgs() |
void |
removeParameter(VariableElement aParameter_) |
void |
removeThrownType(TypeMirror aThrownType_) |
void |
resolveContainedTypeVariables(GenParameterizable parameterizable)
Resolves the type variables of this element in the context of the given ParameterizableElement
|
TypeMirror |
resolveTypeVariable(TypeVariable tv)
resolve the type variable "locally" , for example by using type arguments of the method / class
|
void |
setBody(CodeBody body) |
void |
setDefaultValue(AnnotationValue defaultValue) |
void |
setParameters(List<? extends VariableElement> parameters) |
void |
setReturnType(TypeMirror returnType) |
void |
setThrownTypes(List<? extends TypeMirror> thrownTypes) |
void |
setVarArgs(boolean varArgs) |
String |
toString() |
getReceiverType, isDefaultaddTypeParameter, getDeclaredType, getOrCreateTypeParameter, getTypeParameters, removeTypeParameter, resolveTypeVariables, setTypeParametersaccept, add, addAnnotationMirror, addEnclosedElement, asType, enclosedElementComparator, enclosingParameterizable, getAnnotationMirrors, getComment, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, removeAnnotationMirror, removeEnclosedElement, removeModifier, setAnnotationMirrors, setComment, setEnclosedElements, setEnclosingElement, setModifiers, setSimpleName, setSimpleName, setVisibilitygetAnnotation, getAnnotationsByTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetReceiverType, getSimpleName, getTypeParameters, isDefaultaccept, asType, equals, getAnnotation, getAnnotationMirrors, getEnclosedElements, getEnclosingElement, getKind, getModifiers, hashCodegetAnnotationsByTypepublic GenExecutableElement(String simpleName)
public GenExecutableElement(Name simpleName)
public GenExecutableElement()
public CodeBody getBody()
public void setBody(CodeBody body)
public void addModifier(Modifier m)
addModifier in class GenElementpublic void addParameter(VariableElement ve)
public TypeMirror resolveTypeVariable(TypeVariable tv)
GenParameterizableresolveTypeVariable in class GenParameterizablepublic void resolveContainedTypeVariables(GenParameterizable parameterizable)
GenElementresolveContainedTypeVariables in class GenElementpublic void setReturnType(TypeMirror returnType)
public TypeMirror getReturnType()
getReturnType in interface ExecutableElementpublic List<? extends VariableElement> getParameters()
getParameters in interface ExecutableElementpublic void removeParameter(VariableElement aParameter_)
public void setParameters(List<? extends VariableElement> parameters)
public boolean isVarArgs()
isVarArgs in interface ExecutableElementpublic void setVarArgs(boolean varArgs)
public List<? extends TypeMirror> getThrownTypes()
getThrownTypes in interface ExecutableElementpublic void addThrownType(TypeMirror aThrownType_)
public void removeThrownType(TypeMirror aThrownType_)
public void setThrownTypes(List<? extends TypeMirror> thrownTypes)
public AnnotationValue getDefaultValue()
getDefaultValue in interface ExecutableElementpublic void setDefaultValue(AnnotationValue defaultValue)
Copyright © 2018. All rights reserved.