public interface JavaScriptBuilder<T>
| Modifier and Type | Method and Description |
|---|---|
T |
addStatement(T blockOrStatement,
T statement) |
T |
addStatementBeginning(T blockOrStatement,
T statement) |
T |
array(Iterable<T> values) |
T |
asExpressionList(Iterable<T> nodes) |
T |
assignment(AssignOperator operator,
T left,
T right) |
T |
binary(BinaryOperator operator,
Iterable<T> operands) |
T |
block(Iterable<T> statements) |
T |
breakStatement(T label) |
T |
caseStatement(T expression,
Iterable<T> statements) |
T |
catchClause(T varName,
T body) |
T |
character(String c) |
T |
code(String code) |
T |
comment(T node,
String comment) |
T |
conditionalExpression(T test,
T trueExpr,
T falseExpr) |
T |
continueStatement(T label) |
T |
doLoop(T condition,
T body) |
T |
elementGet(T target,
T index) |
T |
emptyExpression() |
T |
emptyStatement() |
T |
expressionStatement(T expr) |
T |
forInLoop(T iterator,
T iterated,
T body) |
T |
forLoop(T init,
T condition,
T update,
T body) |
T |
function(String name,
Iterable<T> params,
T body) |
T |
functionCall(T target,
Iterable<T> arguments) |
T |
ifStatement(T condition,
T thenPart,
T elsePart) |
T |
keyword(Keyword token) |
T |
label(CharSequence name) |
T |
labeledStatement(T label,
T statement) |
T |
name(CharSequence name) |
T |
newExpression(T target,
Iterable<T> arguments) |
T |
number(Number n) |
T |
object(Iterable<NameValue<T>> props) |
T |
paren(T expr) |
T |
position(T node,
int javaStartLineNumber,
int javaStartColumnNumber,
int javaEndLineNumber,
int javaEndColumnNumber) |
T |
property(T target,
CharSequence name) |
T |
returnStatement(T returnValue) |
T |
root(Iterable<T> children) |
T |
statements(Iterable<T> stmts) |
T |
string(String value) |
T |
switchStatement(T expr,
Iterable<T> cases) |
T |
throwStatement(T expr) |
String |
toString(T node) |
T |
tryStatement(T tryBlock,
Iterable<T> catchClauses,
T finallyBlock) |
T |
unary(UnaryOperator operator,
T operand) |
T |
variableDeclaration(boolean statement,
CharSequence name,
T init) |
T |
variableDeclaration(boolean statement,
Iterable<NameValue<T>> vars) |
T |
whileLoop(T condition,
T body) |
com.google.debugging.sourcemap.SourceMapGenerator |
writeJavaScript(T javascriptRoot,
File inputFile,
boolean generateSourceMap,
Writer writer) |
T name(@Nonnull CharSequence name)
T label(@Nonnull CharSequence name)
T position(@Nonnull T node, int javaStartLineNumber, int javaStartColumnNumber, int javaEndLineNumber, int javaEndColumnNumber)
T property(@Nullable T target, @Nonnull CharSequence name)
T unary(@Nonnull UnaryOperator operator, @Nonnull T operand)
T variableDeclaration(boolean statement, @Nonnull CharSequence name, @Nullable T init)
T emptyStatement()
T emptyExpression()
T tryStatement(@Nonnull T tryBlock, @Nonnull Iterable<T> catchClauses, @Nullable T finallyBlock)
T conditionalExpression(@Nonnull T test, @Nonnull T trueExpr, @Nonnull T falseExpr)
com.google.debugging.sourcemap.SourceMapGenerator writeJavaScript(T javascriptRoot, File inputFile, boolean generateSourceMap, Writer writer)
Copyright © 2015. All Rights Reserved.