cb.generator
Class MethodImpl

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

public class MethodImpl
extends NodeImpl
implements Method

Simple representation of a Java method.

Version:
$Id: MethodImpl.java,v 1.3 2001/06/27 12:56:35 dahm Exp $
Author:
M. Dahm

Field Summary
protected  Operation operation
           
 
Fields inherited from class cb.generator.NodeImpl
access, name
 
Constructor Summary
MethodImpl()
           
 
Method Summary
 void dump(java.io.PrintWriter stream)
          Default implementation prints Java code
 boolean equals(java.lang.Object o)
           
 java.util.List getCode()
           
 Operation getOperation()
           
 java.util.List getParameters()
           
 java.lang.String getReturnType()
           
 void setCode(java.util.List c)
           
 void setOperation(Operation o)
           
 void setParameters(java.util.List p)
           
 void setReturnType(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

operation

protected Operation operation
Constructor Detail

MethodImpl

public MethodImpl()
Method Detail

setOperation

public void setOperation(Operation o)

getOperation

public Operation getOperation()

setReturnType

public void setReturnType(java.lang.String p)
Specified by:
setReturnType in interface Method

getReturnType

public java.lang.String getReturnType()
Specified by:
getReturnType in interface Method

setParameters

public void setParameters(java.util.List p)
Specified by:
setParameters in interface Method

getParameters

public java.util.List getParameters()
Specified by:
getParameters in interface Method

setCode

public void setCode(java.util.List c)
Specified by:
setCode in interface Method

getCode

public java.util.List getCode()
Specified by:
getCode in interface Method

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