public class AFunImpl extends ATermImpl implements AFun
| Modifier | Constructor and Description |
|---|---|
protected |
AFunImpl(PureFactory factory) |
protected |
AFunImpl(PureFactory factory,
String name,
int arity,
boolean isQuoted) |
| Modifier and Type | Method and Description |
|---|---|
Visitable |
accept(Visitor v) |
shared.SharedObject |
duplicate() |
boolean |
equivalent(shared.SharedObject obj) |
ATerm |
getAnnotation(ATerm key)
Gets a annotation associated with specific label from this term.
|
ATermList |
getAnnotations()
Gets all annotations of this term.
|
int |
getArity()
Gets the arity of this application.
|
String |
getName()
Gets the name of the function symbol
|
int |
getType()
Gets the type of this term.
|
protected void |
init(int hashCode,
String name,
int arity,
boolean isQuoted) |
protected void |
initHashCode(String name,
int arity,
boolean isQuoted) |
boolean |
isQuoted()
Checks if this application is quoted.
|
int |
serialize(BufferedOutputStreamWriter writer) |
ATerm |
setAnnotations(ATermList annos)
Sets all annotations of this term.
|
String |
toString()
Gets a string representation of this term.
|
equals, getFactory, getNrSubTerms, getPureFactory, getSubTerm, getUniqueIdentifier, hasAnnotations, hashCode, init, internSetAnnotations, isEqual, make, match, match, removeAnnotation, removeAnnotations, setAnnotation, setHashCode, setSubTerm, setUniqueIdentifier, writeToSharedTextFile, writeToTextFile, writeToTextFilegetChildAt, getChildCount, setChildAtclone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, getFactory, hasAnnotations, hashCode, isEqual, make, match, match, removeAnnotation, removeAnnotations, setAnnotation, writeToSharedTextFile, writeToTextFilegetUniqueIdentifierprotected AFunImpl(PureFactory factory)
factory - protected AFunImpl(PureFactory factory, String name, int arity, boolean isQuoted)
protected void init(int hashCode,
String name,
int arity,
boolean isQuoted)
hashCode - name - arity - isQuoted - protected void initHashCode(String name, int arity, boolean isQuoted)
name - arity - isQuoted - public shared.SharedObject duplicate()
duplicate in interface shared.SharedObjectpublic boolean equivalent(shared.SharedObject obj)
equivalent in interface shared.SharedObjectpublic int getType()
ATermgetType in interface ATermATerm.INT,
ATerm.REAL,
ATerm.APPL,
ATerm.LIST,
ATerm.PLACEHOLDER,
ATerm.BLOB,
ATerm.AFUN,
ATerm.LONGpublic String getName()
AFunpublic int getArity()
AFunpublic boolean isQuoted()
AFunpublic ATerm getAnnotation(ATerm key)
ATermgetAnnotation in interface ATermgetAnnotation in class ATermImplkey - the label of the desired annotation.ATerm.setAnnotation(aterm.ATerm, aterm.ATerm)public ATermList getAnnotations()
ATermgetAnnotations in interface ATermgetAnnotations in class ATermImplATerm.setAnnotations(aterm.ATermList)public ATerm setAnnotations(ATermList annos)
ATermsetAnnotations in interface ATermannos - the annotations to set.ATerm.getAnnotations()public int serialize(BufferedOutputStreamWriter writer) throws IOException
serialize in interface AFunIOExceptionpublic String toString()
ATermCopyright © 2012 CWI. All Rights Reserved.