public class PureFactory extends shared.SharedObjectFactory implements ATermFactory
START_OF_SHARED_TEXT_FILE| Constructor and Description |
|---|
PureFactory() |
PureFactory(int termTableSize) |
| Modifier and Type | Method and Description |
|---|---|
static int |
abbrevSize(int abbrev) |
ATermList |
getEmpty() |
ATerm |
importTerm(ATerm term)
Creates an ATerm by importing it from another ATermFactory.
|
protected boolean |
isDeepEqual(ATermImpl t1,
ATerm t2) |
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[] args,
ATermList annos) |
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 |
makeAppl(AFun fun,
ATerm arg1,
ATerm arg2,
ATerm arg3,
ATerm arg4,
ATerm arg5,
ATerm arg6,
ATerm arg7) |
ATermAppl |
makeApplList(AFun fun,
ATermList list)
Creates a function application.
|
ATermAppl |
makeApplList(AFun fun,
ATermList list,
ATermList annos) |
ATermBlob |
makeBlob(byte[] data)
Creates an ATermBlob (Binary Large OBject).
|
ATermBlob |
makeBlob(byte[] data,
ATermList annos) |
ATermInt |
makeInt(int val)
Creates a new ATermInt object
|
ATermInt |
makeInt(int value,
ATermList annos) |
ATermList |
makeList()
Creates an empty ATermList object
|
ATermList |
makeList(ATerm singleton)
Creates a singleton ATermList object.
|
ATermList |
makeList(ATerm first,
ATermList next)
Creates a head-tail style ATermList.
|
ATermList |
makeList(ATerm first,
ATermList next,
ATermList annos) |
ATermLong |
makeLong(long val)
Creates a new ATermLong object
|
ATermLong |
makeLong(long value,
ATermList annos) |
ATermPlaceholder |
makePlaceholder(ATerm type)
Creates an ATermPlaceholder object.
|
ATermPlaceholder |
makePlaceholder(ATerm type,
ATermList annos) |
ATermReal |
makeReal(double val)
Creates a new ATermReal object
|
ATermReal |
makeReal(double value,
ATermList annos) |
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 filename)
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.
|
public PureFactory()
public PureFactory(int termTableSize)
public static int abbrevSize(int abbrev)
public ATermInt makeInt(int val)
ATermFactorymakeInt in interface ATermFactoryval - the integer value to be stored.public ATermLong makeLong(long val)
ATermFactorymakeLong in interface ATermFactoryval - the long value to be stored.public ATermReal makeReal(double val)
ATermFactorymakeReal in interface ATermFactoryval - the double value to be stored.public ATermList makeList()
ATermFactorymakeList in interface ATermFactorypublic ATermList makeList(ATerm singleton)
ATermFactorymakeList in interface ATermFactorysingleton - the element to be placed in the list.public ATermList makeList(ATerm first, ATermList next)
ATermFactorymakeList in interface ATermFactoryfirst - the head of the list.next - the tail of the list.public ATermPlaceholder makePlaceholder(ATerm type)
ATermFactorymakePlaceholder in interface ATermFactorytype - the type of the hole in the placeholder.public ATermBlob makeBlob(byte[] data)
ATermFactorymakeBlob in interface ATermFactorydata - the data to be stored in the blob.public AFun makeAFun(String name, int arity, boolean isQuoted)
ATermFactorymakeAFun in interface ATermFactoryname - the name of the function symbol.arity - the arity of the function symbol.isQuoted - whether the function symbol is quoted ("foo") or not (foo).public ATermPlaceholder makePlaceholder(ATerm type, ATermList annos)
public ATermAppl makeAppl(AFun fun, ATerm[] args)
ATermFactorymakeAppl in interface ATermFactoryfun - the function symbol of the application.args - an array containing the arguments.public ATermAppl makeApplList(AFun fun, ATermList list)
ATermFactorymakeApplList in interface ATermFactoryfun - the function symbol of the application.list - an ATermList containing the arguments.public ATermAppl makeAppl(AFun fun)
ATermFactorymakeAppl in interface ATermFactoryfun - the function symbol of the application.public ATermAppl makeAppl(AFun fun, ATerm arg)
ATermFactorymakeAppl in interface ATermFactoryfun - the function symbol of the application.arg - the argument of the application.public ATermAppl makeAppl(AFun fun, ATerm arg1, ATerm arg2)
ATermFactorymakeAppl in interface ATermFactoryfun - the function symbol of the application.arg1 - the first argument of the application.arg2 - the second argument of the application.public ATermAppl makeAppl(AFun fun, ATerm arg1, ATerm arg2, ATerm arg3)
ATermFactorymakeAppl in interface ATermFactoryfun - 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.public ATermAppl makeAppl(AFun fun, ATerm arg1, ATerm arg2, ATerm arg3, ATerm arg4)
ATermFactorymakeAppl in interface ATermFactoryfun - 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.public ATermAppl makeAppl(AFun fun, ATerm arg1, ATerm arg2, ATerm arg3, ATerm arg4, ATerm arg5)
ATermFactorymakeAppl in interface ATermFactoryfun - 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.public ATermAppl makeAppl(AFun fun, ATerm arg1, ATerm arg2, ATerm arg3, ATerm arg4, ATerm arg5, ATerm arg6)
ATermFactorymakeAppl in interface ATermFactoryfun - 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.public ATermAppl makeAppl(AFun fun, ATerm arg1, ATerm arg2, ATerm arg3, ATerm arg4, ATerm arg5, ATerm arg6, ATerm arg7)
public ATermList getEmpty()
public ATerm parse(String trm)
ATermFactoryparse in interface ATermFactorytrm - the string representation of the termATermFactory.make(String)public ATerm make(String trm)
ATermFactorymake in interface ATermFactorytrm - the string representation of the termATermFactory.parse(String)public ATerm make(String pattern, List<Object> args)
ATermFactorymake in interface ATermFactorypattern - the string pattern containing a placeholder for each
argument.args - the list of arguments to be filled into the placeholders.public ATerm make(String pattern, Object arg1)
ATermFactorymake in interface ATermFactorypattern - the pattern containing a placeholder for the argument.arg1 - the argument to be filled into the hole.public ATerm make(String pattern, Object arg1, Object arg2)
ATermFactorymake in interface ATermFactorypattern - 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.public ATerm make(String pattern, Object arg1, Object arg2, Object arg3)
ATermFactorymake in interface ATermFactorypattern - 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.public ATerm make(String pattern, Object arg1, Object arg2, Object arg3, Object arg4)
ATermFactorymake in interface ATermFactorypattern - 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.public ATerm make(String pattern, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
ATermFactorymake in interface ATermFactorypattern - 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.public ATerm make(String pattern, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6)
ATermFactorymake in interface ATermFactorypattern - 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.public ATerm make(String pattern, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7)
ATermFactorymake in interface ATermFactorypattern - 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.public ATerm make(ATerm pattern, List<Object> args)
ATermFactorymake in interface ATermFactorypattern - the pattern containing a placeholder for each argument.args - the list of arguments to be filled into the placeholders.public ATerm readFromTextFile(InputStream stream) throws IOException
ATermFactoryreadFromTextFile in interface ATermFactorystream - the inputstream to read the ATerm from.IOExceptionpublic ATerm readFromSharedTextFile(InputStream stream) throws IOException
ATermFactoryreadFromSharedTextFile in interface ATermFactorystream - the inputstream to read the ATerm from.IOExceptionpublic ATerm readFromBinaryFile(InputStream stream) throws IOException
ATermFactoryreadFromBinaryFile in interface ATermFactorystream - the inputstream to read the ATerm from.IOExceptionpublic ATerm readFromFile(InputStream stream) throws IOException
ATermFactoryreadFromFile in interface ATermFactorystream - the inputstream to read the ATerm from.IOExceptionpublic ATerm readFromFile(String filename) throws IOException
ATermFactoryreadFromFile in interface ATermFactoryfilename - the filename to read the ATerm from.IOExceptionpublic ATerm importTerm(ATerm term)
ATermFactoryimportTerm in interface ATermFactoryterm - the term (possibly from another ATermFactory) to rebuild in
this factory.ATermFactory.importTerm(ATerm)Copyright © 2012 CWI. All Rights Reserved.