|
GNU Prolog for Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgnu.prolog.io.CharConversionTable
public class CharConversionTable
A conversion map, used by
char_conversion
and current_char_conversion and
TextInputPrologStream.readTerm(Term,Interpreter,ReadOptions) to map
one character to another.
| Field Summary | |
|---|---|
protected Map<Character,Character> |
conv
|
| Constructor Summary | |
|---|---|
CharConversionTable()
|
|
| Method Summary | |
|---|---|
String |
applyConversion(String fromString)
Apply this CharConversionTable to fromString |
Term |
charConvert(Term term,
Environment environment)
Apply CharConversionTable to term if this should happen. |
char |
convert(char input)
Convert a character. |
Set<Character> |
convertsTo(char toChar)
Returns the set of characters which are converted to this character |
boolean |
hasConversions()
|
void |
setConversion(char from,
char to)
Set the conversion of a character |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<Character,Character> conv
| Constructor Detail |
|---|
public CharConversionTable()
| Method Detail |
|---|
public boolean hasConversions()
public void setConversion(char from,
char to)
from - to - public char convert(char input)
input -
public Set<Character> convertsTo(char toChar)
toChar -
public Term charConvert(Term term,
Environment environment)
CharConversionTable to term if this should happen.
term - the term to apply the conversion toenvironment - the environment this is happening in (provides the flag value)
TextInputPrologStream.readTerm(Term,Interpreter,ReadOptions)public String applyConversion(String fromString)
CharConversionTable to fromString
fromString - the string to apply the conversion to
|
GNU Prolog for Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||