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.4 $
- Author:
- Michael Meyling
- See Also:
- Serialized Form
Fields inherited from class java.lang.Exception |
|
Constructor Summary |
FoundException(Argument argument)
Constructs an argument exception, starts with an argument. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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