public interface ATermFactory
| Modifier and Type | Field and Description |
|---|---|
static byte |
START_OF_SHARED_TEXT_FILE |
| Modifier and Type | Method and Description |
|---|---|
ATerm |
importTerm(ATerm term)
Creates an ATerm by importing it from another ATermFactory.
|
ATerm |
make(ATerm pattern,
List<Object> args)
Creates a new ATerm given a pattern and a list of arguments.
|
ATerm |
make(String trm)
Equivalent of parse.
|
ATerm |
make(String pattern,
List<Object> args)
Creates a new ATerm given a string pattern and a list of arguments.
|
ATerm |
make(String pattern,
Object arg1)
Creates a new ATerm given a pattern and a single argument.
|
ATerm |
make(String pattern,
Object arg1,
Object arg2)
Creates a new ATerm given a pattern and a fixed number of arguments.
|
ATerm |
make(String pattern,
Object arg1,
Object arg2,
Object arg3)
Creates a new ATerm given a pattern and a fixed number of arguments.
|
ATerm |
make(String pattern,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Creates a new ATerm given a pattern and a fixed number of arguments.
|
ATerm |
make(String pattern,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Object arg5)
Creates a new ATerm given a pattern and a fixed number of arguments.
|
ATerm |
make(String pattern,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Object arg5,
Object arg6)
Creates a new ATerm given a pattern and a fixed number of arguments.
|
ATerm |
make(String pattern,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Object arg5,
Object arg6,
Object arg7)
Creates a new ATerm given a pattern and a fixed number of arguments.
|
AFun |
makeAFun(String name,
int arity,
boolean isQuoted)
Creates an AFun object
|
ATermAppl |
makeAppl(AFun fun)
Creates a function application.
|
ATermAppl |
makeAppl(AFun fun,
ATerm arg)
Creates a function application.
|
ATermAppl |
makeAppl(AFun fun,
ATerm[] args)
Creates a function application.
|
ATermAppl |
makeAppl(AFun fun,
ATerm arg1,
ATerm arg2)
Creates a function application.
|
ATermAppl |
makeAppl(AFun fun,
ATerm arg1,
ATerm arg2,
ATerm arg3)
Creates a function application.
|
ATermAppl |
makeAppl(AFun fun,
ATerm arg1,
ATerm arg2,
ATerm arg3,
ATerm arg4)
Creates a function application.
|
ATermAppl |
makeAppl(AFun fun,
ATerm arg1,
ATerm arg2,
ATerm arg3,
ATerm arg4,
ATerm arg5)
Creates a function application.
|
ATermAppl |
makeAppl(AFun fun,
ATerm arg1,
ATerm arg2,
ATerm arg3,
ATerm arg4,
ATerm arg5,
ATerm arg6)
Creates a function application.
|
ATermAppl |
makeApplList(AFun fun,
ATermList args)
Creates a function application.
|
ATermBlob |
makeBlob(byte[] data)
Creates an ATermBlob (Binary Large OBject).
|
ATermInt |
makeInt(int val)
Creates a new ATermInt object
|
ATermList |
makeList()
Creates an empty ATermList object
|
ATermList |
makeList(ATerm single)
Creates a singleton ATermList object.
|
ATermList |
makeList(ATerm head,
ATermList tail)
Creates a head-tail style ATermList.
|
ATermLong |
makeLong(long val)
Creates a new ATermLong object
|
ATermPlaceholder |
makePlaceholder(ATerm type)
Creates an ATermPlaceholder object.
|
ATermReal |
makeReal(double val)
Creates a new ATermReal object
|
ATerm |
parse(String trm)
Creates a new ATerm by parsing a string.
|
ATerm |
readFromBinaryFile(InputStream stream)
Creates an ATerm from a binary stream.
|
ATerm |
readFromFile(InputStream stream)
Creates an ATerm from a stream.
|
ATerm |
readFromFile(String file)
Creates an ATerm from a given filename.
|
ATerm |
readFromSharedTextFile(InputStream stream)
Creates an ATerm from a shared text stream.
|
ATerm |
readFromTextFile(InputStream stream)
Creates an ATerm from a text stream.
|
static final byte START_OF_SHARED_TEXT_FILE
ATerm parse(String trm)
trm - the string representation of the termmake(String)ATerm make(String trm)
trm - the string representation of the termparse(String)ATerm make(String pattern, List<Object> args)
pattern - the string pattern containing a placeholder for each
argument.args - the list of arguments to be filled into the placeholders.ATerm make(ATerm pattern, List<Object> args)
pattern - the pattern containing a placeholder for each argument.args - the list of arguments to be filled into the placeholders.ATerm make(String pattern, Object arg1)
pattern - the pattern containing a placeholder for the argument.arg1 - the argument to be filled into the hole.ATerm make(String pattern, Object arg1, Object arg2)
pattern - the pattern containing a placeholder for the arguments.arg1 - the argument to be filled into the first hole.arg2 - the argument to be filled into the second hole.ATerm make(String pattern, Object arg1, Object arg2, Object arg3)
pattern - the pattern containing a placeholder for the arguments.arg1 - the argument to be filled into the first hole.arg2 - the argument to be filled into the second hole.arg3 - the argument to be filled into the third hole.ATerm make(String pattern, Object arg1, Object arg2, Object arg3, Object arg4)
pattern - the pattern containing a placeholder for the arguments.arg1 - the argument to be filled into the first hole.arg2 - the argument to be filled into the second hole.arg3 - the argument to be filled into the third hole.arg4 - the argument to be filled into the fourth hole.ATerm make(String pattern, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
pattern - the pattern containing a placeholder for the arguments.arg1 - the argument to be filled into the first hole.arg2 - the argument to be filled into the second hole.arg3 - the argument to be filled into the third hole.arg4 - the argument to be filled into the fourth hole.arg5 - the argument to be filled into the fifth hole.ATerm make(String pattern, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6)
pattern - the pattern containing a placeholder for the arguments.arg1 - the argument to be filled into the first hole.arg2 - the argument to be filled into the second hole.arg3 - the argument to be filled into the third hole.arg4 - the argument to be filled into the fourth hole.arg5 - the argument to be filled into the fifth hole.arg6 - the argument to be filled into the sixth hole.ATerm make(String pattern, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7)
pattern - the pattern containing a placeholder for the arguments.arg1 - the argument to be filled into the first hole.arg2 - the argument to be filled into the second hole.arg3 - the argument to be filled into the third hole.arg4 - the argument to be filled into the fourth hole.arg5 - the argument to be filled into the fifth hole.arg6 - the argument to be filled into the sixth hole.arg7 - the argument to be filled into the seventh hole.ATermInt makeInt(int val)
val - the integer value to be stored.ATermLong makeLong(long val)
val - the long value to be stored.ATermReal makeReal(double val)
val - the double value to be stored.ATermList makeList()
ATermList makeList(ATerm single)
single - the element to be placed in the list.ATermList makeList(ATerm head, ATermList tail)
head - the head of the list.tail - the tail of the list.ATermPlaceholder makePlaceholder(ATerm type)
type - the type of the hole in the placeholder.ATermBlob makeBlob(byte[] data)
data - the data to be stored in the blob.AFun makeAFun(String name, int arity, boolean isQuoted)
name - the name of the function symbol.arity - the arity of the function symbol.isQuoted - whether the function symbol is quoted ("foo") or not (foo).ATermAppl makeAppl(AFun fun)
fun - the function symbol of the application.ATermAppl makeAppl(AFun fun, ATerm arg)
fun - the function symbol of the application.arg - the argument of the application.ATermAppl makeAppl(AFun fun, ATerm arg1, ATerm arg2)
fun - the function symbol of the application.arg1 - the first argument of the application.arg2 - the second argument of the application.ATermAppl makeAppl(AFun fun, ATerm arg1, ATerm arg2, ATerm arg3)
fun - the function symbol of the application.arg1 - the first argument of the application.arg2 - the second argument of the application.arg3 - the third argument of the application.ATermAppl makeAppl(AFun fun, ATerm arg1, ATerm arg2, ATerm arg3, ATerm arg4)
fun - the function symbol of the application.arg1 - the first argument of the application.arg2 - the second argument of the application.arg3 - the third argument of the application.arg4 - the fourth argument of the application.ATermAppl makeAppl(AFun fun, ATerm arg1, ATerm arg2, ATerm arg3, ATerm arg4, ATerm arg5)
fun - the function symbol of the application.arg1 - the first argument of the application.arg2 - the second argument of the application.arg3 - the third argument of the application.arg4 - the fourth argument of the application.arg5 - the fifth argument of the application.ATermAppl makeAppl(AFun fun, ATerm arg1, ATerm arg2, ATerm arg3, ATerm arg4, ATerm arg5, ATerm arg6)
fun - the function symbol of the application.arg1 - the first argument of the application.arg2 - the second argument of the application.arg3 - the third argument of the application.arg4 - the fourth argument of the application.arg5 - the fifth argument of the application.arg6 - the sixth argument of the application.ATermAppl makeAppl(AFun fun, ATerm[] args)
fun - the function symbol of the application.args - an array containing the arguments.ATermAppl makeApplList(AFun fun, ATermList args)
fun - the function symbol of the application.args - an ATermList containing the arguments.ATerm readFromTextFile(InputStream stream) throws IOException
stream - the inputstream to read the ATerm from.IOExceptionATerm readFromSharedTextFile(InputStream stream) throws IOException
stream - the inputstream to read the ATerm from.IOExceptionATerm readFromBinaryFile(InputStream stream) throws IOException
stream - the inputstream to read the ATerm from.IOExceptionATerm readFromFile(InputStream stream) throws IOException
stream - the inputstream to read the ATerm from.IOExceptionATerm readFromFile(String file) throws IOException
file - the filename to read the ATerm from.IOExceptionCopyright © 2012 CWI. All Rights Reserved.