Interface lrs.IAlgo
- public interface IAlgo
- extends Object
Represents an abstract algorithm on an LRStruct. Acts as a visitor to a
LRStruct host.
- Author:
- Dung X. Nguyen Copyright 2001 - All rights reserved.
- emptyCase
(LRStruct, Object)
- Operates on an empty LRStruct host, given an input object
- nonEmptyCase
(LRStruct, Object)
- Operates on a non-empty LRStruct host, given an input object
emptyCase
public abstract Object emptyCase(LRStruct host, Object inp)
- Operates on an empty LRStruct host, given an input object.
- Parameters:
- host - an empty LRStruct.
- inp - input object needed by this IVisitor.
- Returns:
- an appropriate output object.
nonEmptyCase
public abstract Object nonEmptyCase(LRStruct host, Object inp)
- Operates on a non-empty LRStruct host, given an input object.
- Parameters:
- host - a non-empty LRStruct.
- inp - input object needed by this IVisitor.
- Returns:
- an appropriate output object.