|
GNU Prolog for Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.prolog.database.PrologTextLoader
public class PrologTextLoader
Field Summary | |
---|---|
static CompoundTermTag |
build_inTag
|
static CompoundTermTag |
char_conversionTag
|
static CompoundTermTag |
controlTag
|
protected String |
currentFile
current file |
protected TermReader |
currentReader
current term reader |
static CompoundTermTag |
discontiguousTag
|
static CompoundTermTag |
dynamicTag
|
static CompoundTermTag |
ensure_loadedTag
|
static CompoundTermTag |
externalTag
|
static CompoundTermTag |
file1Tag
|
protected Stack<String> |
fileStack
stack of previous files |
static CompoundTermTag |
includeTag
|
static CompoundTermTag |
initializationTag
|
static CompoundTermTag |
multifileTag
|
protected OperatorSet |
operatorSet
operator set |
static CompoundTermTag |
opTag
|
protected PrologTextLoaderState |
prologTextLoaderState
prolog text loader state |
protected Stack<TermReader> |
readerStack
stack of previous readers |
static CompoundTermTag |
resource1Tag
|
protected String |
rootFile
root file |
static CompoundTermTag |
set_prolog_flagTag
|
static CompoundTermTag |
url1Tag
|
Constructor Summary | |
---|---|
protected |
PrologTextLoader(PrologTextLoaderState prologTextLoaderState)
|
|
PrologTextLoader(PrologTextLoaderState prologTextLoaderState,
Reader stream)
|
|
PrologTextLoader(PrologTextLoaderState prologTextLoaderState,
Reader stream,
String streamName)
|
|
PrologTextLoader(PrologTextLoaderState prologTextLoaderState,
Term root)
|
Method Summary | |
---|---|
int |
getCurrentColumn()
|
String |
getCurrentFile()
|
int |
getCurrentLine()
|
PrologTextLoaderError |
getCurrentPartialLoaderError()
Get a PrologTextLoaderError for the position the PrologTextLoader is at to use later if something goes wrong caused by an error here. |
PrologTextLoaderState |
getPrologTextLoaderState()
|
void |
logError(ParseException ex)
|
void |
logError(String message)
|
protected void |
processBuildInDirective(Term pi,
Term className)
|
protected void |
processCharConversionDirective(Term from,
Term to)
|
protected void |
processClause(Term argument)
|
protected void |
processControlDirective(Term pi,
Term className)
|
protected void |
processDiscontiguousDirective(Term pi)
|
protected void |
processDynamicDirective(Term pi)
|
protected void |
processEnsureLoadedDirective(Term argument)
|
protected void |
processEof()
|
protected void |
processExternalDirective(Term pi,
Term className)
|
protected void |
processFile()
|
protected void |
processIncludeDirective(Term argument)
|
protected void |
processInitializationDirective(Term term)
|
protected void |
processMultifileDirective(Term pi)
|
protected void |
processOpDirective(Term priority,
Term specifier,
Term operatorAtom)
|
protected void |
processSetPrologFlagDirective(Term arg0,
Term arg1)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String rootFile
protected String currentFile
protected TermReader currentReader
protected Stack<TermReader> readerStack
protected Stack<String> fileStack
protected OperatorSet operatorSet
protected PrologTextLoaderState prologTextLoaderState
public static final CompoundTermTag includeTag
public static final CompoundTermTag multifileTag
public static final CompoundTermTag dynamicTag
public static final CompoundTermTag discontiguousTag
public static final CompoundTermTag opTag
public static final CompoundTermTag char_conversionTag
public static final CompoundTermTag initializationTag
public static final CompoundTermTag ensure_loadedTag
public static final CompoundTermTag set_prolog_flagTag
public static final CompoundTermTag externalTag
public static final CompoundTermTag build_inTag
public static final CompoundTermTag controlTag
public static final CompoundTermTag url1Tag
public static final CompoundTermTag resource1Tag
public static final CompoundTermTag file1Tag
Constructor Detail |
---|
protected PrologTextLoader(PrologTextLoaderState prologTextLoaderState)
public PrologTextLoader(PrologTextLoaderState prologTextLoaderState, Term root)
public PrologTextLoader(PrologTextLoaderState prologTextLoaderState, Reader stream)
prologTextLoaderState
- stream
- the input stream to read from.public PrologTextLoader(PrologTextLoaderState prologTextLoaderState, Reader stream, String streamName)
prologTextLoaderState
- stream
- streamName
- The stream nameMethod Detail |
---|
public String getCurrentFile()
public int getCurrentLine()
public int getCurrentColumn()
public PrologTextLoaderError getCurrentPartialLoaderError()
PrologTextLoaderState.addInitialization(PrologTextLoader,Term)
public PrologTextLoaderState getPrologTextLoaderState()
protected void processFile()
protected void processSetPrologFlagDirective(Term arg0, Term arg1)
protected void processBuildInDirective(Term pi, Term className)
protected void processControlDirective(Term pi, Term className)
protected void processExternalDirective(Term pi, Term className)
protected void processInitializationDirective(Term term)
protected void processCharConversionDirective(Term from, Term to)
protected void processOpDirective(Term priority, Term specifier, Term operatorAtom)
protected void processDiscontiguousDirective(Term pi)
protected void processMultifileDirective(Term pi)
protected void processDynamicDirective(Term pi)
protected void processClause(Term argument)
protected void processIncludeDirective(Term argument)
protected void processEnsureLoadedDirective(Term argument)
protected void processEof()
public void logError(String message)
public void logError(ParseException ex)
|
GNU Prolog for Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |