Top Description Constructors Methods
com.sun.tools.xjc.model

public abstract Class CDefaultValue

extends Object
Class Inheritance
Imports
com.sun.codemodel.JExpression, com.sun.tools.xjc.outline.Outline, com.sun.xml.xsom.XmlString

Object that computes the default value expression lazily. The computation is done lazily because often the default value needs to refer to things (such as enum classes) that are only generated after some of the outline is built.
Author
Kohsuke Kawaguchi

Constructor Summary

AccessConstructor and Description
protected
CDefaultValue()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public abstract JExpression
compute(Outline outline)

public static CDefaultValue
create(final TypeUse typeUse, final XmlString defaultValue)

Creates a new that computes the default value by applying a lexical representation to a TypeUse.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CDefaultValueback to summary
protected CDefaultValue()

Default constructor.

Method Detail

computeback to summary
public abstract JExpression compute(Outline outline)
createback to summary
public static CDefaultValue create(final TypeUse typeUse, final XmlString defaultValue)

Creates a new that computes the default value by applying a lexical representation to a TypeUse.