lrs.visitor
Class LRSPrintN
java.lang.Object
lrs.visitor.LRSPrintN
- All Implemented Interfaces:
- ICounterAlgo, IAlgo
public class LRSPrintN
- extends java.lang.Object
- implements IAlgo, ICounterAlgo
|
Field Summary |
(package private) javax.swing.JTextArea |
textArea
|
|
Constructor Summary |
LRSPrintN(javax.swing.JTextArea textArea)
|
|
Method Summary |
java.lang.Object |
emptyCase(LRStruct host,
java.lang.Object... param)
Operates on an empty LRStruct host, given an input object. |
java.lang.Object |
nonEmptyCase(LRStruct host,
java.lang.Object... param)
Operates on a non-empty LRStruct host, given an input object. |
java.lang.Object |
nonZeroCase(ICounter host,
java.lang.Object... param)
|
java.lang.Object |
zeroCase(ICounter host,
java.lang.Object... param)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
textArea
javax.swing.JTextArea textArea
LRSPrintN
public LRSPrintN(javax.swing.JTextArea textArea)
- Parameters:
textArea -
emptyCase
public java.lang.Object emptyCase(LRStruct host,
java.lang.Object... param)
- Description copied from interface:
IAlgo
- Operates on an empty LRStruct host, given an input object.
- Specified by:
emptyCase in interface IAlgo
- Parameters:
host - an empty LRStruct.param - variable input list of objects needed by this IVisitor.
- Returns:
- an appropriate output object.
nonEmptyCase
public java.lang.Object nonEmptyCase(LRStruct host,
java.lang.Object... param)
- Description copied from interface:
IAlgo
- Operates on a non-empty LRStruct host, given an input object.
- Specified by:
nonEmptyCase in interface IAlgo
- Parameters:
host - a non-empty LRStruct.param - variable input list of objects needed by this IVisitor.
- Returns:
- an appropriate output object.
zeroCase
public java.lang.Object zeroCase(ICounter host,
java.lang.Object... param)
- Specified by:
zeroCase in interface ICounterAlgo
- Parameters:
host - param -
nonZeroCase
public java.lang.Object nonZeroCase(ICounter host,
java.lang.Object... param)
- Specified by:
nonZeroCase in interface ICounterAlgo
- Parameters:
host - param -