| com.sun.tools.xjc.outline.FieldAccessor
FieldAccessor | public interface FieldAccessor (Code) | | Encapsulates the access on a field.
author: Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) |
Method Summary | |
void | fromRawValue(JBlock block, String uniqueName, JExpression $var) Sets the value of the field from the specified expression.
This generates code that accesses the field from outside.
Parameters: block - The code will be generated into this block. Parameters: uniqueName - Identifier that the caller guarantees to be unique inthe given block. | CPropertyInfo | getPropertyInfo() | JExpression | hasSetValue() Return an expression that evaluates to true only when
this field has a set value(s). | FieldOutline | owner() Gets the
FieldOutline from which
this object is created. | void | toRawValue(JBlock block, JVar $var) Dumps everything in this field into the given variable. | void | unsetValues(JBlock body) Generates a code fragment to remove any "set" value
and move this field to the "unset" state. |
fromRawValue | void fromRawValue(JBlock block, String uniqueName, JExpression $var)(Code) | | Sets the value of the field from the specified expression.
This generates code that accesses the field from outside.
Parameters: block - The code will be generated into this block. Parameters: uniqueName - Identifier that the caller guarantees to be unique inthe given block. When the callee needs to produce additionalvariables, it can do so by adding suffixes to this uniquename. For example, if the uniqueName is "abc", then the caller guarantees that any identifier "abc.*" is unusedin this block. Parameters: $var - The expression that evaluates to a value of the typeFieldOutline.getRawType. |
hasSetValue | JExpression hasSetValue()(Code) | | Return an expression that evaluates to true only when
this field has a set value(s).
nullif the isSetXXX/unsetXXX method does not make sense for the given field. |
toRawValue | void toRawValue(JBlock block, JVar $var)(Code) | | Dumps everything in this field into the given variable.
This generates code that accesses the field from outside.
Parameters: block - The code will be generated into this block. Parameters: $var - Variable whose type is FieldOutline.getRawType |
unsetValues | void unsetValues(JBlock body)(Code) | | Generates a code fragment to remove any "set" value
and move this field to the "unset" state.
Parameters: body - The code will be appended at the end of this block. |
|
|