Top Description Fields Constructors Methods
org.eclipse.persistence.internal.codegen

public Class CodeGenerator

extends Object
Class Inheritance
Imports
java.io.*, org.eclipse.persistence.internal.helper.*, org.eclipse.persistence.exceptions.*

INTERNAL:

Purpose: Used to generate code

Author
James Sutherland
Since
TopLink 3.0

Field Summary

Modifier and TypeField and Description
protected ClassDefinition
protected Writer
protected boolean

Constructor Summary

AccessConstructor and Description
public
public
CodeGenerator(boolean useUnicode)

Method Summary

Modifier and TypeMethod and Description
public void
cr()

public ClassDefinition
public Writer
public void
public void
setOutput(Writer output)

public void
tab()

public void
tab(int indent)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public void
write(Object value)

public void
writeln(Object value)

public void
writeType(String typeName)

Write the type checking if its package is required.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

currentClassback to summary
protected ClassDefinition currentClass
outputback to summary
protected Writer output
useUnicodeback to summary
protected boolean useUnicode

Constructor Detail

CodeGeneratorback to summary
public CodeGenerator()
CodeGeneratorback to summary
public CodeGenerator(boolean useUnicode)

Method Detail

crback to summary
public void cr()
getCurrentClassback to summary
public ClassDefinition getCurrentClass()
getOutputback to summary
public Writer getOutput()
setCurrentClassback to summary
public void setCurrentClass(ClassDefinition currentClass)
setOutputback to summary
public void setOutput(Writer output)
tabback to summary
public void tab()
tabback to summary
public void tab(int indent)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
writeback to summary
public void write(Object value)
writelnback to summary
public void writeln(Object value)
writeTypeback to summary
public void writeType(String typeName)

Write the type checking if its package is required.