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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
operation
protected Operation operation
MethodImpl
public MethodImpl()
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