public class CodeExecutableElement extends CodeElement<Element> implements ExecutableElement
| Constructor and Description |
|---|
CodeExecutableElement(Set<Modifier> modifiers,
TypeMirror returnType,
String name,
CodeVariableElement... parameters) |
CodeExecutableElement(TypeMirror returnType,
String name) |
add, addAll, addAnnotationMirror, addOptional, equals, getAnnotation, getAnnotationMirrors, getAnnotations, getAnnotationsByType, getEnclosedElements, getEnclosingClass, getEnclosingElement, getGeneratorAnnotationMirror, getGeneratorElement, getModifiers, hashCode, remove, setEnclosingElement, setGeneratorAnnotationMirror, setGeneratorElement, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, getAnnotation, getAnnotationMirrors, getEnclosedElements, getEnclosingElement, getModifiers, hashCodegetAnnotationsByTypepublic CodeExecutableElement(TypeMirror returnType, String name)
public CodeExecutableElement(Set<Modifier> modifiers, TypeMirror returnType, String name, CodeVariableElement... parameters)
public void setVisibility(Modifier visibility)
public Modifier getVisibility()
public boolean isDefault()
isDefault in interface ExecutableElementpublic List<TypeMirror> getThrownTypes()
getThrownTypes in interface ExecutableElementpublic TypeMirror asType()
public ElementKind getKind()
public List<TypeParameterElement> getTypeParameters()
getTypeParameters in interface ExecutableElementgetTypeParameters in interface Parameterizablepublic void setVarArgs(boolean varargs)
public boolean isVarArgs()
isVarArgs in interface ExecutableElementpublic void setDefaultValue(AnnotationValue defaultValue)
public AnnotationValue getDefaultValue()
getDefaultValue in interface ExecutableElementpublic Name getSimpleName()
getSimpleName in interface ElementgetSimpleName in interface ExecutableElementpublic CodeTreeBuilder getBuilder()
public CodeTreeBuilder createDocBuilder()
public CodeTreeBuilder createBuilder()
public CodeTreeBuilder appendBuilder()
public CodeTree getDocTree()
public void setDocTree(CodeTree docTree)
public void setBodyTree(CodeTree body)
public CodeTree getBodyTree()
public TypeMirror getReturnType()
getReturnType in interface ExecutableElementpublic List<VariableElement> getParameters()
getParameters in interface ExecutableElementpublic TypeMirror[] getParameterTypes()
public void setReturnType(TypeMirror type)
public void addParameter(VariableElement parameter)
public void addThrownType(TypeMirror thrownType)
public void setSimpleName(Name name)
public void setBody(String body)
public String getBody()
public <R,P> R accept(ElementVisitor<R,P> v, P p)
public static CodeExecutableElement cloneNoAnnotations(ExecutableElement executable)
public static CodeExecutableElement clone(ExecutableElement method)
public TypeMirror getReceiverType()
getReceiverType in interface ExecutableElementpublic void renameArguments(String... args)
public void changeTypes(TypeMirror... args)