cb.generator
Class FieldImpl

java.lang.Object
  |
  +--cb.generator.NodeImpl
        |
        +--cb.generator.FieldImpl
All Implemented Interfaces:
Field, Node

public class FieldImpl
extends NodeImpl
implements Field

Simple representation of a Java field.

Version:
$Id: FieldImpl.java,v 1.2 2001/06/27 10:26:03 dahm Exp $
Author:
M. Dahm

Field Summary
protected  ClassAttribute attribute
           
 
Fields inherited from class cb.generator.NodeImpl
access, name
 
Constructor Summary
FieldImpl()
           
 
Method Summary
 void dump(java.io.PrintWriter stream)
          Default implementation prints Java code
 boolean equals(java.lang.Object o)
           
 ClassAttribute getAttribute()
           
 java.lang.String getInitialValue()
           
 java.lang.String getType()
           
 void setAttribute(ClassAttribute a)
           
 void setInitialValue(java.lang.String s)
           
 void setType(java.lang.String p)
           
 
Methods inherited from class cb.generator.NodeImpl
getAccess, getName, is, print, printDocumentation, setAccess, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cb.generator.Node
getAccess, getName, is, setAccess, setName
 

Field Detail

attribute

protected ClassAttribute attribute
Constructor Detail

FieldImpl

public FieldImpl()
Method Detail

setAttribute

public void setAttribute(ClassAttribute a)

getAttribute

public ClassAttribute getAttribute()

setInitialValue

public void setInitialValue(java.lang.String s)
Specified by:
setInitialValue in interface Field

getInitialValue

public java.lang.String getInitialValue()
Specified by:
getInitialValue in interface Field

setType

public void setType(java.lang.String p)
Specified by:
setType in interface Field

getType

public java.lang.String getType()
Specified by:
getType in interface Field

dump

public void dump(java.io.PrintWriter stream)
Default implementation prints Java code
Specified by:
dump in interface Node

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object