| 
Algernon Software | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jatha.dynatype.StandardLispValue
org.algernon.datatype.Path
| Field Summary | |
private  Algernon | 
f_algy
 | 
protected  LispValue | 
m_path
 | 
| Fields inherited from class org.jatha.dynatype.StandardLispValue | 
f_lisp | 
| Constructor Summary | |
Path(Algernon algy)
Creates an empty path.  | 
|
Path(Algernon algy,
     LispValue value)
Creates a new Path.  | 
|
Path(Algernon algy,
     String pathString)
Creates a new Path.  | 
|
| Method Summary | |
 void | 
addClause(Clause clause)
Adds a clause to the end of the path.  | 
 String | 
display(PrintStream out)
Displayable interface  | 
 LispValue | 
findName(Processor processor,
         LispValue variable)
Given a variable name, searches for a clause of the form (  | 
 Clause | 
firstClause()
Returns the first clause in the path.  | 
 LispValue | 
getPath()
Returns the LispValue containing the list of clauses in the path.  | 
 BindingList | 
getVariableArguments()
Returns a BindingList of the arguments in the path that are variables.  | 
 boolean | 
isGround()
Returns true if the path contains no unground clauses.  | 
 boolean | 
isSyntacticallyLegal()
Returns true if the path is syntactically legal.  | 
 Iterator | 
iterator()
Returns an iterator across the path.  | 
 Clause | 
pop(Clause clause)
Pops a clause from the front of the path.  | 
 void | 
push(Clause clause)
Pushes a clause onto the front of the path.  | 
 int | 
size()
Returns the size of the Path.  | 
 Path | 
tail()
Returns a path containing all of the clauses in the given path after the first.  | 
 String | 
toString()
Returns a string representation of the clause.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected LispValue m_path
private Algernon f_algy
| Constructor Detail | 
public Path(Algernon algy)
public Path(Algernon algy,
            String pathString)
     throws AlgernonDataException
public Path(Algernon algy,
            LispValue value)
     throws AlgernonDataException
| Method Detail | 
public String toString()
toString in interface LispValuepublic String display(PrintStream out)
display in interface Displayable
public Clause firstClause()
                   throws AlgernonDataException
AlgernonDataException
public Path tail()
          throws AlgernonDataException
AlgernonDataExceptionpublic LispValue getPath()
public boolean isSyntacticallyLegal()
public BindingList getVariableArguments()
                                 throws AlgernonDataException
AlgernonDataExceptionpublic Iterator iterator()
iterator in interface LispValuepublic int size()
public boolean isGround()
public void addClause(Clause clause)
public LispValue findName(Processor processor,
                          LispValue variable)
public void push(Clause clause)
public Clause pop(Clause clause)
  | 
Algernon Software | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||