com.meyling.principia.argument
Class FoundException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.meyling.principia.argument.FoundException
- All Implemented Interfaces:
- Serializable
- public class FoundException
- extends Exception
Helps constructing a parent list.
- Version:
- $Revision: 1.3 $
- Author:
- Michael Meyling
- See Also:
- Serialized Form
Constructor Summary |
FoundException(Argument argument)
Constructs an argument exception, starts with an argument. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FoundException
public FoundException(Argument argument)
- Constructs an argument exception, starts with an argument.
- Parameters:
argument
- this argument is the deepest node
addAndThrow
public final void addAndThrow(Argument argument)
throws FoundException
- Constructs an argument exception, starts with an argument.
- Parameters:
argument
- this argument is added as an parent- Throws:
FoundException
- throws itself again
getList
public final VariableList getList()
- Get current parent children list.
- Returns:
- parent children list
getLastEntry
public final Argument getLastEntry()
- Get last argument entry.
- Returns:
- last argument