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) 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, 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(TypeMirror type) booleanisEmpty()javadocLink(Element element, String title) lineComment(String text) maybeCast(TypeMirror sourceType, TypeMirror targetType) maybeCast(TypeMirror sourceType, TypeMirror targetType, String receiver) newLine()voidsetEnclosingElement(Element enclosingElement) static CodeTreestatic CodeTreestartAssign(String receiver, VariableElement field) startCall(String receiver, ExecutableElement method) startCatchBlock(TypeMirror[] exceptionTypes, String localVarName) startCatchBlock(TypeMirror exceptionType, String localVarName) startDoc()startFor()startIf()booleanstartIf(boolean elseIf) startNew(TypeMirror uninializedNodeClass) 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)
-
Constructor Details
-
CodeTreeBuilder
-
-
Method Details
-
setEnclosingElement
-
toString
-
getTreeCount
public int getTreeCount() -
isEmpty
public boolean isEmpty() -
startJavadoc
-
javadocLink
-
startDoc
-
statement
-
statement
-
statement
-
createBuilder
-
singleString
-
singleType
-
startStatement
-
startGroup
-
startCommaGroup
-
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
-
startCase
-
caseDefault
-
startSwitch
-
startReturn
-
startAssert
-
startNewArray
-
lineComment
-
startNew
-
startNew
-
startIndention
-
end
-
end
-
startBlock
-
startSynchronized
-
startSynchronized
-
defaultDeclaration
-
declaration
-
declarationDefault
-
declaration
-
declaration
-
declaration
-
declaration
-
create
-
type
-
typeLiteral
-
startCaseBlock
-
startThrow
-
getTree
-
build
-
cast
-
maybeCast
-
maybeCast
-
cast
-
startSuperCall
-
returnFalse
-
returnStatement
-
findMethod
-
returnNull
-
returnTrue
-
instanceOf
-
instanceOf
-
defaultValue
-
startTryBlock
-
startCatchBlock
-
startCatchBlock
-
startFinallyBlock
-
nullLiteral
-
returnDefault
-
startAssign
-
field
-
constantLiteral
-