|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ast.AstObject
uk.ac.starlink.ast.Channel
uk.ac.starlink.splat.ast.ASTChannel
public class ASTChannel
AST Channel for reading and writing native encodings using String arrays.
Field Summary |
---|
Fields inherited from class uk.ac.starlink.ast.AstObject |
---|
AST__BAD, AST__TUNULL, pointer |
Constructor Summary | |
---|---|
ASTChannel(String[] astArray)
Creates a Channel from a String array |
Method Summary | |
---|---|
static void |
astWrite(uk.ac.starlink.ast.AstObject object)
|
int |
getIndex()
Get the array position index. |
int |
getSize()
Get the size of the backing String array. |
void |
setArray(String[] astArray)
Replace the String array. |
void |
setIndex(int position)
Set the array position index. |
protected void |
sink(String line)
Sink function. |
protected String |
source()
Read the next line from the array. |
Methods inherited from class uk.ac.starlink.ast.Channel |
---|
copy, finalize, getComment, getFull, getReportLevel, getSkip, getStrict, read, setComment, setFull, setReportLevel, setSkip, setStrict, warnings, write |
Methods inherited from class uk.ac.starlink.ast.AstObject |
---|
annul, clear, delete, equals, getAstConstantI, getB, getC, getD, getF, getI, getID, getIdent, getL, getNobject, getObjSize, getRefCount, hashCode, isThreaded, reportVersions, sameObject, set, setB, setC, setD, setF, setI, setID, setIdent, setL, show, test, tune |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ASTChannel(String[] astArray)
astArray
- array holding an AST native encoding. Note that
a reference to this is kept so any
modifications will be seen.Method Detail |
---|
protected String source() throws IOException
source
in class uk.ac.starlink.ast.Channel
IOException
protected void sink(String line)
sink
in class uk.ac.starlink.ast.Channel
public void setIndex(int position)
public int getIndex()
public int getSize()
public void setArray(String[] astArray)
public static void astWrite(uk.ac.starlink.ast.AstObject object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |