JStatement |
JBlock._assert(JExpr expr) |
Insert an assert statement at this point.
|
JStatement |
JBlock._assert(JExpr expr,
JExpr message) |
Insert an assert statement at this point with a message.
|
JBlock |
JSwitch._case(JExpr expr) |
Add a switch case.
|
JMethodDef |
JMethodDef._default(JExpr expr) |
A default value for an annotation method.
|
JBlock |
JBlock._do(JExpr cond) |
Insert a do /while statement at this point.
|
JIf |
JBlock._if(JExpr cond) |
Insert an if statement at this point.
|
JExpr |
JType._new(JExpr dim) |
Construct a new instance of this array type.
|
JStatement |
JBlock._return(JExpr expr) |
Insert a return statement at this point.
|
JSwitch |
JBlock._switch(JExpr expr) |
Insert a switch statement at this point.
|
JBlock |
JBlock._synchronized(JExpr synchExpr) |
Insert a synchronized block at this point.
|
JStatement |
JBlock._throw(JExpr expr) |
Insert a throw statement at this point.
|
JBlock |
JBlock._while(JExpr cond) |
Insert a while statement at this point.
|
JArrayExpr |
JArrayExpr.add(JExpr value) |
Add an element to this array.
|
JStatement |
JBlock.add(JExpr expr) |
Insert an expression statement at this point.
|
JVarDeclaration |
JVarDeclaration.add(java.lang.String name,
JExpr init) |
Add another item to this declaration.
|
JExpr |
JAssignableExpr.addAssign(JExpr e1) |
Combine this expression with another using the binary += operator.
|
JStatement |
JBlock.addAssign(JAssignableExpr target,
JExpr e1) |
Insert an assignment (+= ) expression at this point.
|
JExpr |
JExpr.and(JExpr e1) |
Combine this expression with another using the binary && operator.
|
JExpr |
JAssignableExpr.andAssign(JExpr e1) |
Combine this expression with another using the binary &= operator.
|
JStatement |
JBlock.andAssign(JAssignableExpr target,
JExpr e1) |
Insert an assignment (&= ) expression at this point.
|
JCall |
JCall.arg(JExpr expr) |
Add an actual parameter argument to this call.
|
JEnumConstant |
JEnumConstant.arg(JExpr expr) |
Add an argument.
|
JSimpleArgs |
JSimpleArgs.arg(JExpr expr) |
Add an argument.
|
static JArrayExpr |
JExprs.array(JExpr... members) |
Return a new array expression.
|
JExpr |
JAssignableExpr.assign(JExpr e1) |
Combine this expression with another using the binary = operator.
|
JStatement |
JBlock.assign(JAssignableExpr target,
JExpr e1) |
Insert an assignment (= ) expression at this point.
|
JExpr |
JExpr.band(JExpr e1) |
Combine this expression with another using the binary & operator.
|
JLambda |
JLambda.body(JExpr expr) |
Set the lambda body as an expression.
|
JExpr |
JExpr.bor(JExpr e1) |
Combine this expression with another using the binary | operator.
|
JExpr |
JExpr.bxor(JExpr e1) |
Combine this expression with another using the binary ^ operator.
|
JCall |
JBlock.call(JExpr obj,
java.lang.String name) |
Insert a method invocation at this point.
|
JCall |
JBlock.call(JExpr obj,
javax.lang.model.element.ExecutableElement element) |
Insert a method invocation at this point.
|
JExpr |
JExpr.cond(JExpr ifTrue,
JExpr ifFalse) |
Combine this expression with two others using the ternary ? : operator.
|
JExpr |
JExpr.div(JExpr e1) |
Combine this expression with another using the binary / operator.
|
JExpr |
JAssignableExpr.divAssign(JExpr e1) |
Combine this expression with another using the binary /= operator.
|
JStatement |
JBlock.divAssign(JAssignableExpr target,
JExpr e1) |
Insert an assignment (/= ) expression at this point.
|
JIf |
JIf.elseIf(JExpr cond) |
Add an if statement to the else block.
|
JExpr |
JExpr.eq(JExpr e1) |
Combine this expression with another using the binary == operator.
|
JVarDeclaration |
JClassDefSection.field(int mods,
java.lang.Class<?> type,
java.lang.String name,
JExpr init) |
Add a field to this type.
|
JVarDeclaration |
JClassDefSection.field(int mods,
java.lang.String type,
java.lang.String name,
JExpr init) |
Add a field to this type.
|
JVarDeclaration |
JClassDefSection.field(int mods,
JType type,
java.lang.String name,
JExpr init) |
Add a field to this type.
|
JBlock |
JBlock.forEach(int mods,
java.lang.Class<?> type,
java.lang.String name,
JExpr iterable) |
Insert a "for-each" style for loop at this point.
|
JBlock |
JBlock.forEach(int mods,
java.lang.String type,
java.lang.String name,
JExpr iterable) |
Insert a "for-each" style for loop at this point.
|
JBlock |
JBlock.forEach(int mods,
JType type,
java.lang.String name,
JExpr iterable) |
Insert a "for-each" style for loop at this point.
|
JExpr |
JExpr.ge(JExpr e1) |
Combine this expression with another using the binary >= operator.
|
JExpr |
JExpr.gt(JExpr e1) |
Combine this expression with another using the binary > operator.
|
JAssignableExpr |
JExpr.idx(JExpr idx) |
Get an element of this array expression.
|
JVarDeclaration |
JFor.init(int mods,
java.lang.Class<?> type,
java.lang.String name,
JExpr value) |
Add a loop initializer.
|
JVarDeclaration |
JFor.init(int mods,
java.lang.String type,
java.lang.String name,
JExpr value) |
Add a loop initializer.
|
JVarDeclaration |
JFor.init(int mods,
JType type,
java.lang.String name,
JExpr value) |
Add a loop initializer.
|
JExpr |
JExpr.le(JExpr e1) |
Combine this expression with another using the binary <= operator.
|
JExpr |
JExpr.lshr(JExpr e1) |
Combine this expression with another using the binary >>> operator.
|
JExpr |
JAssignableExpr.lshrAssign(JExpr e1) |
Combine this expression with another using the binary >>>= operator.
|
JStatement |
JBlock.lshrAssign(JAssignableExpr target,
JExpr e1) |
Insert an assignment (>>>= ) expression at this point.
|
JExpr |
JExpr.lt(JExpr e1) |
Combine this expression with another using the binary < operator.
|
JExpr |
JExpr.minus(JExpr e1) |
Combine this expression with another using the binary - operator.
|
JExpr |
JExpr.mod(JExpr e1) |
Combine this expression with another using the binary % operator.
|
JExpr |
JAssignableExpr.modAssign(JExpr e1) |
Combine this expression with another using the binary %= operator.
|
JStatement |
JBlock.modAssign(JAssignableExpr target,
JExpr e1) |
Insert an assignment (%= ) expression at this point.
|
JExpr |
JAssignableExpr.mulAssign(JExpr e1) |
Combine this expression with another using the binary *= operator.
|
JStatement |
JBlock.mulAssign(JAssignableExpr target,
JExpr e1) |
Insert an assignment (*= ) expression at this point.
|
JExpr |
JExpr.ne(JExpr e1) |
Combine this expression with another using the binary != operator.
|
JExpr |
JExpr.or(JExpr e1) |
Combine this expression with another using the binary || operator.
|
JExpr |
JAssignableExpr.orAssign(JExpr e1) |
Combine this expression with another using the binary |= operator.
|
JStatement |
JBlock.orAssign(JAssignableExpr target,
JExpr e1) |
Insert an assignment (|= ) expression at this point.
|
JExpr |
JExpr.plus(JExpr e1) |
Combine this expression with another using the binary + operator.
|
JExpr |
JExpr.shl(JExpr e1) |
Combine this expression with another using the binary << operator.
|
JExpr |
JAssignableExpr.shlAssign(JExpr e1) |
Combine this expression with another using the binary <<= operator.
|
JStatement |
JBlock.shlAssign(JAssignableExpr target,
JExpr e1) |
Insert an assignment (<<= ) expression at this point.
|
JExpr |
JExpr.shr(JExpr e1) |
Combine this expression with another using the binary >> operator.
|
JExpr |
JAssignableExpr.shrAssign(JExpr e1) |
Combine this expression with another using the binary >>= operator.
|
JStatement |
JBlock.shrAssign(JAssignableExpr target,
JExpr e1) |
Insert an assignment (>>= ) expression at this point.
|
JExpr |
JAssignableExpr.subAssign(JExpr e1) |
Combine this expression with another using the binary -= operator.
|
JStatement |
JBlock.subAssign(JAssignableExpr target,
JExpr e1) |
Insert an assignment (-= ) expression at this point.
|
JExpr |
JBlock.tempVar(java.lang.Class<?> type,
JExpr value) |
Insert a local variable declaration at this point with a generated name.
|
JExpr |
JBlock.tempVar(java.lang.String type,
JExpr value) |
Insert a local variable declaration at this point with a generated name.
|
JExpr |
JBlock.tempVar(JType type,
JExpr value) |
Insert a local variable declaration at this point with a generated name.
|
JFor |
JFor.test(JExpr expr) |
Add a test expression.
|
JExpr |
JExpr.times(JExpr e1) |
Combine this expression with another using the binary * operator.
|
JFor |
JFor.update(JExpr updateExpr) |
Add an update expression.
|
JAnnotation |
JAnnotation.value(java.lang.String name,
JExpr expr) |
Set the named property of this annotation.
|
JAnnotation |
JAnnotation.value(JExpr expr) |
Set the "value" property of this annotation.
|
JVarDeclaration |
JBlock.var(int mods,
java.lang.Class<?> type,
java.lang.String name,
JExpr value) |
Insert a local variable declaration at this point.
|
JVarDeclaration |
JBlock.var(int mods,
java.lang.String type,
java.lang.String name,
JExpr value) |
Insert a local variable declaration at this point.
|
JVarDeclaration |
JBlock.var(int mods,
JType type,
java.lang.String name,
JExpr value) |
Insert a local variable declaration at this point.
|
JVarDeclaration |
JTry.with(int mods,
java.lang.Class<? extends java.lang.AutoCloseable> type,
java.lang.String var,
JExpr init) |
Add a resource for try -with-resources constructs.
|
JVarDeclaration |
JTry.with(int mods,
java.lang.String type,
java.lang.String var,
JExpr init) |
Add a resource for try -with-resources constructs.
|
JVarDeclaration |
JTry.with(int mods,
JType type,
java.lang.String var,
JExpr init) |
Add a resource for try -with-resources constructs.
|
JExpr |
JAssignableExpr.xorAssign(JExpr e1) |
Combine this expression with another using the binary ^= operator.
|
JStatement |
JBlock.xorAssign(JAssignableExpr target,
JExpr e1) |
Insert an assignment (^= ) expression at this point.
|