cb.generator
Class NodeImpl

java.lang.Object
  |
  +--cb.generator.NodeImpl
All Implemented Interfaces:
Node
Direct Known Subclasses:
ClassImpl, FieldImpl, MethodImpl, ParameterImpl

public abstract class NodeImpl
extends java.lang.Object
implements Node

Simple representation of a node.

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

Field Summary
protected  java.lang.String access
           
protected  java.lang.String name
           
 
Constructor Summary
NodeImpl()
           
 
Method Summary
 java.lang.String getAccess()
           
 java.lang.String getName()
           
 boolean is(java.lang.String s)
          E.g., if(is("public")) ...
protected static void print(java.io.PrintWriter stream, java.lang.String pre, java.lang.String o, java.lang.String post)
           
protected static void printDocumentation(java.io.PrintWriter stream, Documented d)
           
 void setAccess(java.lang.String a)
           
 void setName(java.lang.String n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cb.generator.Node
dump
 

Field Detail

name

protected java.lang.String name

access

protected java.lang.String access
Constructor Detail

NodeImpl

public NodeImpl()
Method Detail

setName

public void setName(java.lang.String n)
Specified by:
setName in interface Node

getName

public java.lang.String getName()
Specified by:
getName in interface Node

setAccess

public void setAccess(java.lang.String a)
Specified by:
setAccess in interface Node

getAccess

public java.lang.String getAccess()
Specified by:
getAccess in interface Node

is

public boolean is(java.lang.String s)
Description copied from interface: Node
E.g., if(is("public")) ...
Specified by:
is in interface Node

print

protected static void print(java.io.PrintWriter stream,
                            java.lang.String pre,
                            java.lang.String o,
                            java.lang.String post)

printDocumentation

protected static void printDocumentation(java.io.PrintWriter stream,
                                         Documented d)