|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectasd.ASDGrammarReader
public class ASDGrammarReader
Instances can create an ASDGrammar from a character file.
| Constructor Summary | |
|---|---|
ASDGrammarReader(java.lang.String fileName)
Initializes a new ASDGrammarReader on a given file or URL. |
|
ASDGrammarReader(java.lang.String fileName,
boolean includeCoords)
Initializes a new ASDGrammarReader on a given file or URL. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the InputStream used by the ASDGrammarReader, if the InputStream was opened from a URL. |
java.util.HashMap<java.lang.String,java.util.ArrayList<ASDGrammarNode>> |
getGrammar()
Gets an ASD grammar from the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ASDGrammarReader(java.lang.String fileName)
throws java.io.IOException,
java.net.MalformedURLException
fileName - the name of the file or URL
java.io.IOException
java.net.MalformedURLException
public ASDGrammarReader(java.lang.String fileName,
boolean includeCoords)
throws java.io.IOException,
java.net.MalformedURLException
fileName - the name of the file or URLincludeCoords - indicates whether or not to include
pixel coordinates in the grammar loaded, if they are
present. They are needed by the graphical grammar editor
but not by the parser.
java.io.IOException
java.net.MalformedURLException| Method Detail |
|---|
public void close()
throws java.io.IOException
java.io.IOException
public java.util.HashMap<java.lang.String,java.util.ArrayList<ASDGrammarNode>> getGrammar()
throws java.io.IOException,
ASDInputException
java.io.IOException
ASDInputException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||