org.jactr.io.parser
Interface IModelParser

All Known Implementing Classes:
AbstractModelParser, JACTRModelParser, LispModelParser

public interface IModelParser

Author:
harrison To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Method Summary
 void addTreeTracker(ITreeTracker tracker)
           
 void delegate(org.antlr.runtime.tree.CommonTree node)
           
 void dispose()
           
 org.antlr.runtime.tree.CommonTree getDocumentTree()
          return the common AST document tree.
 IParserImportDelegate getImportDelegate()
           
 java.net.URL getInput()
           
 java.util.Collection<java.lang.Exception> getParseErrors()
          get all the lexing/parsing exceptions
 java.util.Collection<java.lang.Exception> getParseWarnings()
           
 boolean parse()
          parse the url..
 void removeTreeTracker(ITreeTracker tracker)
           
 void setImportDelegate(IParserImportDelegate delegate)
           
 void setInput(java.lang.String content)
          this parser will handle pure string input
 void setInput(java.net.URL url)
          called by the ModelParserFactory
 

Method Detail

getInput

java.net.URL getInput()

setInput

void setInput(java.net.URL url)
              throws java.io.IOException
called by the ModelParserFactory

Parameters:
url -
Throws:
java.io.IOException

setInput

void setInput(java.lang.String content)
              throws java.io.IOException
this parser will handle pure string input

Parameters:
content -
Throws:
java.io.IOException

parse

boolean parse()
parse the url..

Returns:
true if the parse was completely succcessful (no errors)

getParseErrors

java.util.Collection<java.lang.Exception> getParseErrors()
get all the lexing/parsing exceptions

Returns:

getParseWarnings

java.util.Collection<java.lang.Exception> getParseWarnings()

getDocumentTree

org.antlr.runtime.tree.CommonTree getDocumentTree()
return the common AST document tree. this can only be called after parse()

Returns:

getImportDelegate

IParserImportDelegate getImportDelegate()

setImportDelegate

void setImportDelegate(IParserImportDelegate delegate)

delegate

void delegate(org.antlr.runtime.tree.CommonTree node)

addTreeTracker

void addTreeTracker(ITreeTracker tracker)

removeTreeTracker

void removeTreeTracker(ITreeTracker tracker)

dispose

void dispose()