cgp.runtime
Class FileType

java.lang.Object
  |
  +--cgp.runtime.Type
        |
        +--cgp.runtime.FileType

public class FileType
extends Type


Field Summary
private  java.io.File file
           
private  java.lang.String origPath
           
private  java.lang.String path
           
private  java.io.BufferedReader reader
           
private  java.io.BufferedWriter writer
           
 
Fields inherited from class cgp.runtime.Type
kbStack, scopeStack, type
 
Constructor Summary
FileType(java.lang.String path)
           
 
Method Summary
 void close()
           
 StringType getKind()
          Getter and setter methods for pCG attributes.
 java.io.File getValue()
           
 Type readall()
           
 Type readGraph()
           
 Type readGraphStream()
           
 Type readline()
          pCG member functions.
 java.lang.String toString()
           
 void write(StringType s)
           
 void writeln(StringType s)
           
 
Methods inherited from class cgp.runtime.Type
addOp, andOp, divideOp, eqOp, geOp, getAttr, getKBStack, getNthOp, getScopeStack, getType, gtOp, invokeMemberFunc, isOp, leOp, ltOp, modulusOp, multiplyOp, negateOp, neOp, notOp, operationError, orOp, setAttr, setKBStack, setNthOp, setScopeStack, setType, subtractOp
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

origPath

private java.lang.String origPath

path

private java.lang.String path

file

private java.io.File file

reader

private java.io.BufferedReader reader

writer

private java.io.BufferedWriter writer
Constructor Detail

FileType

public FileType(java.lang.String path)
         throws java.io.IOException
Method Detail

getValue

public java.io.File getValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getKind

public StringType getKind()
Getter and setter methods for pCG attributes.

readline

public Type readline()
              throws java.io.IOException
pCG member functions.

readall

public Type readall()
             throws java.io.IOException

readGraph

public Type readGraph()
               throws java.io.IOException

readGraphStream

public Type readGraphStream()
                     throws java.io.IOException,
                            notio.ParserException

write

public void write(StringType s)
           throws java.io.IOException

writeln

public void writeln(StringType s)
             throws java.io.IOException

close

public void close()
           throws java.io.IOException