Package | Description |
---|---|
com.sun.codemodel |
Library for generating Java source code
|
com.sun.tools.xjc.generator.bean.field |
FieldRenderer and its implementation classes.
|
com.sun.tools.xjc.generator.util | |
com.sun.tools.xjc.model |
Implementation of the
com.sun.xml.bind.v2.model.core package for XJC. |
com.sun.tools.xjc.outline |
Provides the outline of the generated Java source code so that
additional processing (such as adding more annotations) can be
done on the generated code.
|
Modifier and Type | Interface and Description |
---|---|
interface |
JAssignmentTarget
Marker interface for code components that can be placed to
the left of '=' in an assignment.
|
Modifier and Type | Class and Description |
---|---|
class |
JArray
array creation and initialization.
|
class |
JAssignment
Assignment statements, which are also expressions.
|
class |
JEnumConstant
Enum Constant.
|
class |
JExpressionImpl
Provides default implementations for
JExpression . |
class |
JFieldRef
Field Reference
|
class |
JFieldVar
A field that can have a
JDocComment associated with it |
class |
JInvocation
JMethod invocation
|
class |
JStringLiteral
String literal.
|
class |
JVar
Variables and fields.
|
Modifier and Type | Field and Description |
---|---|
static JExpression |
JExpr.FALSE
Boolean constant that represents
false |
static JExpression |
JExpr.TRUE
Boolean constant that represents
true |
Modifier and Type | Method and Description |
---|---|
static JExpression |
JOp._instanceof(JExpression left,
JType right) |
JExpression |
JExpressionImpl._instanceof(JType right) |
JExpression |
JExpression._instanceof(JType right)
Returns "[this] instanceof [right]"
|
static JExpression |
JExpr._null() |
static JExpression |
JExpr._super()
Returns a reference to "super", an implicit reference
to the super class.
|
static JExpression |
JExpr._this()
Returns a reference to "this", an implicit reference
to the current object.
|
static JExpression |
JExpr.assign(JAssignmentTarget lhs,
JExpression rhs) |
JExpression |
JVar.assign(JExpression rhs) |
JExpression |
JFieldRef.assign(JExpression rhs) |
JExpression |
JAssignmentTarget.assign(JExpression rhs) |
static JExpression |
JExpr.assignPlus(JAssignmentTarget lhs,
JExpression rhs) |
JExpression |
JVar.assignPlus(JExpression rhs) |
JExpression |
JFieldRef.assignPlus(JExpression rhs) |
JExpression |
JAssignmentTarget.assignPlus(JExpression rhs) |
JExpression |
JExpressionImpl.band(JExpression right) |
JExpression |
JExpression.band(JExpression right)
Bit-wise AND '&'.
|
static JExpression |
JOp.band(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.bor(JExpression right) |
JExpression |
JExpression.bor(JExpression right)
Bit-wise OR '|'.
|
static JExpression |
JOp.bor(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.cand(JExpression right) |
JExpression |
JExpression.cand(JExpression right)
Logical AND '&&'.
|
static JExpression |
JOp.cand(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.complement() |
JExpression |
JExpression.complement()
Returns "~[this]" from "[this]".
|
static JExpression |
JOp.complement(JExpression e) |
static JExpression |
JOp.cond(JExpression cond,
JExpression ifTrue,
JExpression ifFalse) |
JExpression |
JExpressionImpl.cor(JExpression right) |
JExpression |
JExpression.cor(JExpression right)
Logical OR '||'.
|
static JExpression |
JOp.cor(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.decr() |
JExpression |
JExpression.decr()
Returns "[this]--" from "[this]".
|
static JExpression |
JOp.decr(JExpression e) |
static JExpression |
JExpr.direct(String source)
Creates an expression directly from a source code fragment.
|
JExpression |
JExpressionImpl.div(JExpression right) |
JExpression |
JExpression.div(JExpression right)
Returns "[this]/[right]"
|
static JExpression |
JOp.div(JExpression left,
JExpression right) |
JExpression |
JClass.dotclass() |
static JExpression |
JExpr.dotclass(JClass cl) |
JExpression |
JExpressionImpl.eq(JExpression right) |
JExpression |
JExpression.eq(JExpression right) |
static JExpression |
JOp.eq(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.gt(JExpression right) |
JExpression |
JExpression.gt(JExpression right) |
static JExpression |
JOp.gt(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.gte(JExpression right) |
JExpression |
JExpression.gte(JExpression right) |
static JExpression |
JOp.gte(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.incr() |
JExpression |
JExpression.incr()
Returns "[this]++" from "[this]".
|
static JExpression |
JOp.incr(JExpression e) |
JExpression |
JCase.label() |
JExpression[] |
JInvocation.listArgs()
Returns all arguments of the invocation.
|
static JExpression |
JExpr.lit(boolean b) |
static JExpression |
JExpr.lit(char c) |
static JExpression |
JExpr.lit(double d) |
static JExpression |
JExpr.lit(float f) |
static JExpression |
JExpr.lit(int n) |
static JExpression |
JExpr.lit(long n) |
static JExpression |
JExpr.lit(String s) |
JExpression |
JExpressionImpl.lt(JExpression right) |
JExpression |
JExpression.lt(JExpression right) |
static JExpression |
JOp.lt(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.lte(JExpression right) |
JExpression |
JExpression.lte(JExpression right) |
static JExpression |
JOp.lte(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.minus() |
JExpression |
JExpression.minus()
Returns "-[this]" from "[this]".
|
static JExpression |
JOp.minus(JExpression e) |
JExpression |
JExpressionImpl.minus(JExpression right) |
JExpression |
JExpression.minus(JExpression right)
Returns "[this]-[right]"
|
static JExpression |
JOp.minus(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.mod(JExpression right) |
JExpression |
JExpression.mod(JExpression right)
Returns "[this]%[right]"
|
static JExpression |
JOp.mod(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.mul(JExpression right) |
JExpression |
JExpression.mul(JExpression right)
Returns "[this]*[right]"
|
static JExpression |
JOp.mul(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.ne(JExpression right) |
JExpression |
JExpression.ne(JExpression right) |
static JExpression |
JOp.ne(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.not()
Logical not
'!x' . |
JExpression |
JExpression.not()
Returns "![this]" from "[this]".
|
static JExpression |
JOp.not(JExpression e)
Logical not
'!x' . |
JExpression |
JExpressionImpl.plus(JExpression right) |
JExpression |
JExpression.plus(JExpression right)
Returns "[this]+[right]"
|
static JExpression |
JOp.plus(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.shl(JExpression right) |
JExpression |
JExpression.shl(JExpression right)
Returns "[this]<<[right]"
|
static JExpression |
JOp.shl(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.shr(JExpression right) |
JExpression |
JExpression.shr(JExpression right)
Returns "
[this]>>[right] " |
static JExpression |
JOp.shr(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.shrz(JExpression right) |
JExpression |
JExpression.shrz(JExpression right)
Returns "
[this]>>>[right] " |
static JExpression |
JOp.shrz(JExpression left,
JExpression right) |
JExpression |
JWhileLoop.test() |
JExpression |
JSwitch.test() |
JExpression |
JPrimitiveType.unwrap(JExpression exp)
Do the opposite of the wrap method.
|
JExpression |
JPrimitiveType.wrap(JExpression exp)
Wraps an expression of this type to the corresponding wrapper class.
|
JExpression |
JExpressionImpl.xor(JExpression right) |
JExpression |
JExpression.xor(JExpression right) |
static JExpression |
JOp.xor(JExpression left,
JExpression right) |
Modifier and Type | Method and Description |
---|---|
JCase |
JSwitch._case(JExpression label) |
JDoLoop |
JBlock._do(JExpression test)
Create a Do statement and add it to this block
|
JConditional |
JConditional._elseif(JExpression boolExp)
Creates {@code ...
|
JConditional |
JBlock._if(JExpression expr)
Create an If statement and add it to this block
|
static JExpression |
JOp._instanceof(JExpression left,
JType right) |
void |
JBlock._return(JExpression exp)
Create a return statement and add it to this block
|
JSwitch |
JBlock._switch(JExpression test)
Create a switch/case statement and add it to this block
|
void |
JBlock._throw(JExpression exp)
Create a throw statement and add it to this block
|
JWhileLoop |
JBlock._while(JExpression test)
Create a While statement and add it to this block
|
JArray |
JArray.add(JExpression e)
Add an element to the array initializer
|
JInvocation |
JInvocation.arg(JExpression arg)
Add an expression to this invocation's argument list
|
JEnumConstant |
JEnumConstant.arg(JExpression arg)
Add an expression to this constructor's argument list
|
static JExpression |
JExpr.assign(JAssignmentTarget lhs,
JExpression rhs) |
JBlock |
JBlock.assign(JAssignmentTarget lhs,
JExpression exp)
Creates an assignment statement and adds it to this block.
|
JExpression |
JVar.assign(JExpression rhs) |
JExpression |
JFieldRef.assign(JExpression rhs) |
JExpression |
JAssignmentTarget.assign(JExpression rhs) |
static JExpression |
JExpr.assignPlus(JAssignmentTarget lhs,
JExpression rhs) |
JBlock |
JBlock.assignPlus(JAssignmentTarget lhs,
JExpression exp) |
JExpression |
JVar.assignPlus(JExpression rhs) |
JExpression |
JFieldRef.assignPlus(JExpression rhs) |
JExpression |
JAssignmentTarget.assignPlus(JExpression rhs) |
JExpression |
JExpressionImpl.band(JExpression right) |
JExpression |
JExpression.band(JExpression right)
Bit-wise AND '&'.
|
static JExpression |
JOp.band(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.bor(JExpression right) |
JExpression |
JExpression.bor(JExpression right)
Bit-wise OR '|'.
|
static JExpression |
JOp.bor(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.cand(JExpression right) |
JExpression |
JExpression.cand(JExpression right)
Logical AND '&&'.
|
static JExpression |
JOp.cand(JExpression left,
JExpression right) |
static com.sun.codemodel.JCast |
JExpr.cast(JType type,
JExpression expr) |
static JExpression |
JOp.complement(JExpression e) |
com.sun.codemodel.JArrayCompRef |
JExpressionImpl.component(JExpression index) |
com.sun.codemodel.JArrayCompRef |
JExpression.component(JExpression index) |
static com.sun.codemodel.JArrayCompRef |
JExpr.component(JExpression lhs,
JExpression index) |
static JExpression |
JOp.cond(JExpression cond,
JExpression ifTrue,
JExpression ifFalse) |
JExpression |
JExpressionImpl.cor(JExpression right) |
JExpression |
JExpression.cor(JExpression right)
Logical OR '||'.
|
static JExpression |
JOp.cor(JExpression left,
JExpression right) |
JVar |
JBlock.decl(int mods,
JType type,
String name,
JExpression init)
Adds a local variable declaration to this block
|
JVar |
JBlock.decl(JType type,
String name,
JExpression init)
Adds a local variable declaration to this block
|
void |
JMethod.declareDefaultValue(JExpression value)
Specify the default value for this annotation member
|
static JExpression |
JOp.decr(JExpression e) |
JExpression |
JExpressionImpl.div(JExpression right) |
JExpression |
JExpression.div(JExpression right)
Returns "[this]/[right]"
|
static JExpression |
JOp.div(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.eq(JExpression right) |
JExpression |
JExpression.eq(JExpression right) |
static JExpression |
JOp.eq(JExpression left,
JExpression right) |
JFieldVar |
JDefinedClass.field(int mods,
Class<?> type,
String name,
JExpression init) |
JFieldVar |
JDefinedClass.field(int mods,
JType type,
String name,
JExpression init)
Adds a field to the list of field members of this JDefinedClass.
|
JForEach |
JBlock.forEach(JType varType,
String name,
JExpression collection)
Creates an enhanced For statement based on j2se 1.5 JLS
and add it to this block
|
JExpression |
JExpressionImpl.gt(JExpression right) |
JExpression |
JExpression.gt(JExpression right) |
static JExpression |
JOp.gt(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.gte(JExpression right) |
JExpression |
JExpression.gte(JExpression right) |
static JExpression |
JOp.gte(JExpression left,
JExpression right) |
static JExpression |
JOp.incr(JExpression e) |
JVar |
JForLoop.init(int mods,
JType type,
String var,
JExpression e) |
JVar |
JVar.init(JExpression init)
Initialize this variable
|
JVar |
JForLoop.init(JType type,
String var,
JExpression e) |
void |
JForLoop.init(JVar v,
JExpression e) |
static JInvocation |
JExpr.invoke(JExpression lhs,
JMethod method) |
JInvocation |
JBlock.invoke(JExpression expr,
JMethod method)
Creates an invocation statement and adds it to this block.
|
static JInvocation |
JExpr.invoke(JExpression lhs,
String method) |
JInvocation |
JBlock.invoke(JExpression expr,
String method)
Creates an invocation statement and adds it to this block.
|
JExpression |
JExpressionImpl.lt(JExpression right) |
JExpression |
JExpression.lt(JExpression right) |
static JExpression |
JOp.lt(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.lte(JExpression right) |
JExpression |
JExpression.lte(JExpression right) |
static JExpression |
JOp.lte(JExpression left,
JExpression right) |
static JExpression |
JOp.minus(JExpression e) |
JExpression |
JExpressionImpl.minus(JExpression right) |
JExpression |
JExpression.minus(JExpression right)
Returns "[this]-[right]"
|
static JExpression |
JOp.minus(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.mod(JExpression right) |
JExpression |
JExpression.mod(JExpression right)
Returns "[this]%[right]"
|
static JExpression |
JOp.mod(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.mul(JExpression right) |
JExpression |
JExpression.mul(JExpression right)
Returns "[this]*[right]"
|
static JExpression |
JOp.mul(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.ne(JExpression right) |
JExpression |
JExpression.ne(JExpression right) |
static JExpression |
JOp.ne(JExpression left,
JExpression right) |
static JArray |
JExpr.newArray(JType type,
JExpression size)
Generates
new T[size] . |
static JExpression |
JOp.not(JExpression e)
Logical not
'!x' . |
JAnnotationArrayMember |
JAnnotationArrayMember.param(JExpression value)
Adds an expression array member to this annotation
|
JAnnotationUse |
JAnnotationUse.param(String name,
JExpression value)
Adds a member value pair to this annotation.
|
JExpression |
JExpressionImpl.plus(JExpression right) |
JExpression |
JExpression.plus(JExpression right)
Returns "[this]+[right]"
|
static JExpression |
JOp.plus(JExpression left,
JExpression right) |
static JFieldRef |
JExpr.ref(JExpression lhs,
JVar field) |
static JFieldRef |
JExpr.ref(JExpression lhs,
String field) |
JExpression |
JExpressionImpl.shl(JExpression right) |
JExpression |
JExpression.shl(JExpression right)
Returns "[this]<<[right]"
|
static JExpression |
JOp.shl(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.shr(JExpression right) |
JExpression |
JExpression.shr(JExpression right)
Returns "
[this]>>[right] " |
static JExpression |
JOp.shr(JExpression left,
JExpression right) |
JExpression |
JExpressionImpl.shrz(JExpression right) |
JExpression |
JExpression.shrz(JExpression right)
Returns "
[this]>>>[right] " |
static JExpression |
JOp.shrz(JExpression left,
JExpression right) |
void |
JForLoop.test(JExpression e) |
JExpression |
JPrimitiveType.unwrap(JExpression exp)
Do the opposite of the wrap method.
|
void |
JForLoop.update(JExpression e) |
JExpression |
JPrimitiveType.wrap(JExpression exp)
Wraps an expression of this type to the corresponding wrapper class.
|
JExpression |
JExpressionImpl.xor(JExpression right) |
JExpression |
JExpression.xor(JExpression right) |
static JExpression |
JOp.xor(JExpression left,
JExpression right) |
Constructor and Description |
---|
JForEach(JType vartype,
String variable,
JExpression collection) |
Modifier and Type | Method and Description |
---|---|
JExpression |
SingleField.Accessor.hasSetValue() |
Modifier and Type | Method and Description |
---|---|
com.sun.tools.xjc.generator.bean.field.UntypedListField.Accessor |
UntypedListField.create(JExpression targetObject) |
FieldAccessor |
UnboxedField.create(JExpression targetObject) |
FieldAccessor |
SingleField.create(JExpression targetObject) |
com.sun.tools.xjc.generator.bean.field.NoExtendedContentField.Accessor |
NoExtendedContentField.create(JExpression targetObject) |
FieldAccessor |
IsSetField.create(JExpression targetObject) |
com.sun.tools.xjc.generator.bean.field.DummyListField.Accessor |
DummyListField.create(JExpression targetObject) |
com.sun.tools.xjc.generator.bean.field.ContentListField.Accessor |
ContentListField.create(JExpression targetObject) |
Constructor and Description |
---|
Accessor(JExpression $target) |
Modifier and Type | Method and Description |
---|---|
abstract JExpression |
WhitespaceNormalizer.generate(JCodeModel codeModel,
JExpression literal)
Generates the expression that normalizes
the given expression (which evaluates to java.lang.String).
|
Modifier and Type | Method and Description |
---|---|
abstract JExpression |
WhitespaceNormalizer.generate(JCodeModel codeModel,
JExpression literal)
Generates the expression that normalizes
the given expression (which evaluates to java.lang.String).
|
Modifier and Type | Method and Description |
---|---|
abstract JExpression |
CDefaultValue.compute(Outline outline) |
JExpression |
TypeUse.createConstant(Outline outline,
com.sun.xml.xsom.XmlString lexical)
Creates a constant for the given lexical value.
|
JExpression |
CEnumLeafInfo.createConstant(Outline outline,
com.sun.xml.xsom.XmlString literal) |
Modifier and Type | Method and Description |
---|---|
JExpression |
FieldAccessor.hasSetValue()
Return an expression that evaluates to true only when
this field has a set value(s).
|
Modifier and Type | Method and Description |
---|---|
FieldAccessor |
FieldOutline.create(JExpression targetObject)
Creates a new
FieldAccessor of this field
for the specified object. |
void |
FieldAccessor.fromRawValue(JBlock block,
String uniqueName,
JExpression $var)
Sets the value of the field from the specified expression.
|
Copyright © 2019 JBoss by Red Hat. All rights reserved.