|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.xjc.generator.bean.field.AbstractField.Accessor
com.sun.tools.xjc.generator.bean.field.AbstractListField.Accessor
com.sun.tools.xjc.generator.bean.field.ArrayField.Accessor
class ArrayField.Accessor
Field Summary |
---|
Fields inherited from class com.sun.tools.xjc.generator.bean.field.AbstractListField.Accessor |
---|
field |
Fields inherited from class com.sun.tools.xjc.generator.bean.field.AbstractField.Accessor |
---|
$target |
Constructor Summary | |
---|---|
protected |
ArrayField.Accessor(com.sun.codemodel.JExpression $target)
|
Method Summary | |
---|---|
void |
fromRawValue(com.sun.codemodel.JBlock block,
java.lang.String uniqueName,
com.sun.codemodel.JExpression $var)
Sets the value of the field from the specified expression. |
void |
toRawValue(com.sun.codemodel.JBlock block,
com.sun.codemodel.JVar $var)
Dumps everything in this field into the given variable. |
Methods inherited from class com.sun.tools.xjc.generator.bean.field.AbstractListField.Accessor |
---|
add, box, count, getContentValue, hasSetValue, ref, toArray, unbox, unsetValues |
Methods inherited from class com.sun.tools.xjc.generator.bean.field.AbstractField.Accessor |
---|
getPropertyInfo, owner |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ArrayField.Accessor(com.sun.codemodel.JExpression $target)
Method Detail |
---|
public void toRawValue(com.sun.codemodel.JBlock block, com.sun.codemodel.JVar $var)
FieldAccessor
This generates code that accesses the field from outside.
block
- The code will be generated into this block.$var
- Variable whose type is FieldOutline.getRawType()
public void fromRawValue(com.sun.codemodel.JBlock block, java.lang.String uniqueName, com.sun.codemodel.JExpression $var)
FieldAccessor
This generates code that accesses the field from outside.
block
- The code will be generated into this block.uniqueName
- Identifier that the caller guarantees to be unique in
the given block. When the callee needs to produce additional
variables, it can do so by adding suffixes to this unique
name. For example, if the uniqueName is "abc", then the
caller guarantees that any identifier "abc.*" is unused
in this block.$var
- The expression that evaluates to a value of the type
FieldOutline.getRawType()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |