Class CodeExecutableElement
java.lang.Object
com.oracle.truffle.dsl.processor.java.model.CodeElement<Element>
com.oracle.truffle.dsl.processor.java.model.CodeExecutableElement
- All Implemented Interfaces:
GeneratedElement,AnnotatedConstruct,Element,ExecutableElement,Parameterizable
-
Constructor Summary
ConstructorsConstructorDescriptionCodeExecutableElement(Set<Modifier> modifiers, TypeMirror returnType, String name, CodeVariableElement... parameters) CodeExecutableElement(TypeMirror returnType, String name) -
Method Summary
Modifier and TypeMethodDescription<R,P> R accept(ElementVisitor<R, P> v, P p) voidaddParameter(VariableElement parameter) voidaddThrownType(TypeMirror thrownType) asType()voidchangeTypes(TypeMirror... args) static CodeExecutableElementclone(ExecutableElement method) static CodeExecutableElementcloneNoAnnotations(ExecutableElement executable) getBody()getKind()booleanbooleanvoidrenameArguments(String... args) voidvoidsetBodyTree(CodeTree body) voidsetDefaultValue(AnnotationValue defaultValue) voidsetReturnType(TypeMirror type) voidsetSimpleName(Name name) voidsetVarArgs(boolean varargs) voidsetVisibility(Modifier visibility) Methods inherited from class com.oracle.truffle.dsl.processor.java.model.CodeElement
add, addAll, addAnnotationMirror, addOptional, createDocBuilder, equals, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getDocTree, getEnclosedElements, getEnclosingClass, getEnclosingElement, getGeneratorAnnotationMirror, getGeneratorElement, getModifiers, hashCode, setDocTree, setEnclosingElement, setGeneratorAnnotationMirror, setGeneratorElement, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.lang.model.element.Element
equals, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getEnclosedElements, getModifiers, hashCodeMethods inherited from interface javax.lang.model.element.ExecutableElement
getEnclosingElement
-
Constructor Details
-
CodeExecutableElement
-
CodeExecutableElement
public CodeExecutableElement(Set<Modifier> modifiers, TypeMirror returnType, String name, CodeVariableElement... parameters)
-
-
Method Details
-
setVisibility
-
getVisibility
-
isDefault
public boolean isDefault()- Specified by:
isDefaultin interfaceExecutableElement
-
getThrownTypes
- Specified by:
getThrownTypesin interfaceExecutableElement
-
asType
- Specified by:
asTypein interfaceElement- Specified by:
asTypein interfaceExecutableElement
-
getKind
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceExecutableElement- Specified by:
getTypeParametersin interfaceParameterizable
-
setVarArgs
public void setVarArgs(boolean varargs) -
isVarArgs
public boolean isVarArgs()- Specified by:
isVarArgsin interfaceExecutableElement
-
setDefaultValue
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceExecutableElement
-
getSimpleName
- Specified by:
getSimpleNamein interfaceElement- Specified by:
getSimpleNamein interfaceExecutableElement
-
getBuilder
-
createBuilder
-
appendBuilder
-
setBodyTree
-
getBodyTree
-
getReturnType
- Specified by:
getReturnTypein interfaceExecutableElement
-
getParameters
- Specified by:
getParametersin interfaceExecutableElement
-
getParameterTypes
-
setReturnType
-
addParameter
-
addThrownType
-
setSimpleName
-
setBody
-
getBody
-
accept
-
cloneNoAnnotations
-
clone
-
getReceiverType
- Specified by:
getReceiverTypein interfaceExecutableElement
-
renameArguments
-
changeTypes
-