Class CodeTreeBuilder
java.lang.Object
com.oracle.truffle.dsl.processor.java.model.CodeTreeBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()cast(TypeMirror type) cast(TypeMirror type, CodeTree content) cast(TypeMirror type, String content) constantLiteral(TypeMirror type, int index) create()static CodeTreeBuilderdeclaration(String type, String name, CodeTree init) declaration(String type, String name, String init) declaration(TypeMirror type, String name) declaration(TypeMirror type, String name, CodeTree init) declaration(TypeMirror type, String name, CodeTreeBuilder init) declaration(TypeMirror type, String name, String init) declarationDefault(TypeMirror type, String name) defaultDeclaration(TypeMirror type, String name) defaultValue(TypeMirror mirror) end()end(int times) field(String receiver, VariableElement field) getTree()intinstanceOf(CodeTree var, TypeMirror type) instanceOf(String var, TypeMirror type) instanceOf(String var, TypeMirror type, String binding) instanceOf(TypeMirror type) booleanisEmpty()javadocLink(Element element, String title) lineComment(String text) lineCommentf(String text, Object... args) maybeCast(TypeMirror sourceType, TypeMirror targetType) maybeCast(TypeMirror sourceType, TypeMirror targetType, String receiver) newLine()voidsetEnclosingElement(Element enclosingElement) static CodeTreestatic CodeTreestatic CodeTreestartAssign(String variableName) startAssign(String receiver, VariableElement field) startAssign(VariableElement variable) startCall(String receiver, ExecutableElement method) startCall(VariableElement receiver, String callSite) startCatchBlock(TypeMirror[] exceptionTypes, String localVarName) startCatchBlock(TypeMirror exceptionType, String localVarName) startDeclaration(TypeMirror type, String name) startDoc()startElseBlock(boolean elseIf) startFor()startIf()booleanstartIf(boolean elseIf) startNew(TypeMirror uninitializedNodeClass) startNewArray(ArrayType arrayType, CodeTree size) startStaticCall(ExecutableElement method) startStaticCall(TypeMirror type, String methodName) startSynchronized(CodeTree object) startSynchronized(String object) staticReference(VariableElement field) staticReference(TypeMirror type, String fieldName) string(int chunk1) toString()type(TypeMirror type) typeLiteral(TypeMirror type) variable(VariableElement variable) variables(List<? extends VariableElement> variables)
-
Constructor Details
-
CodeTreeBuilder
-
-
Method Details
-
setEnclosingElement
-
toString
-
getTreeCount
public int getTreeCount() -
isEmpty
public boolean isEmpty() -
startJavadoc
-
javadocLink
-
startDoc
-
statement
-
statement
-
statement
-
createBuilder
-
singleString
-
singleType
-
singleVariable
-
startStatement
-
startGroup
-
startCommaGroup
-
startCall
-
startCall
-
startCall
-
startCall
-
startCall
-
startStaticCall
-
startStaticCall
-
staticReference
-
staticReference
-
startParantheses
-
doubleQuote
-
string
-
string
-
string
-
string
-
string
-
tree
-
trees
-
string
-
newLine
-
startWhile
-
startDoBlock
-
startDoWhile
-
startIf
-
startFor
-
startIf
public boolean startIf(boolean elseIf) -
startElseIf
-
startElseBlock
-
startElseBlock
-
startCase
-
caseDefault
-
startSwitch
-
startReturn
-
startAssert
-
startNewArray
-
lineComment
-
lineCommentf
-
startComment
-
startNew
-
startNew
-
startNew
-
startIndention
-
end
-
end
-
startBlock
-
startSynchronized
-
startSynchronized
-
defaultDeclaration
-
declaration
-
startDeclaration
-
declaration
-
declarationDefault
-
declaration
-
declaration
-
declaration
-
declaration
-
create
-
type
-
typeLiteral
-
startCaseBlock
-
startThrow
-
getTree
-
build
-
cast
-
maybeCast
-
maybeCast
-
cast
-
cast
-
startSuperCall
-
returnFalse
-
returnStatement
-
findMethod
-
returnNull
-
returnTrue
-
instanceOf
-
instanceOf
-
instanceOf
-
instanceOf
-
defaultValue
-
startTryBlock
-
startCatchBlock
-
startCatchBlock
-
startFinallyBlock
-
nullLiteral
-
returnDefault
-
startAssign
-
startAssign
-
startAssign
-
variable
-
variables
-
field
-
constantLiteral
-
lines
-