public class ATermApplImpl extends ATermImpl implements ATermAppl
| Modifier | Constructor and Description |
|---|---|
protected |
ATermApplImpl(PureFactory factory) |
protected |
ATermApplImpl(PureFactory factory,
ATermList annos,
AFun fun,
ATerm[] i_args) |
| Modifier and Type | Method and Description |
|---|---|
Visitable |
accept(Visitor v) |
shared.SharedObject |
duplicate() |
boolean |
equivalent(shared.SharedObject obj) |
AFun |
getAFun()
Gets the AFun object that represents the function symbol of this application
|
ATerm |
getArgument(int index)
Gets a specific argument of this application.
|
ATerm[] |
getArgumentArray()
Gets the arguments of this application as an array of ATerm objects.
|
ATermList |
getArguments()
Gets the arguments of this application.
|
int |
getArity()
Gets the arity of this application.
|
String |
getName()
Gets the function name of this application.
|
int |
getNrSubTerms() |
ATerm |
getSubTerm(int index) |
int |
getType()
Gets the type of this term.
|
protected int |
hashFunction() |
protected void |
init(int hashCode,
ATermList annos,
AFun fun,
ATerm[] i_args) |
protected void |
initHashCode(ATermList annos,
AFun fun,
ATerm[] i_args) |
boolean |
isQuoted()
Checks if this application is quoted.
|
protected ATermAppl |
make(AFun fun,
ATerm[] i_args) |
protected ATermAppl |
make(AFun fun,
ATerm[] i_args,
ATermList annos) |
ATerm |
make(List<Object> arguments)
Create a new term based on this term as a pattern and a list of arguments.
|
protected boolean |
match(ATerm pattern,
List<Object> list) |
ATerm |
setAnnotations(ATermList annos)
Sets all annotations of this term.
|
ATermAppl |
setArgument(ATerm newarg,
int index)
Sets a specific argument of this application.
|
ATerm |
setSubTerm(int index,
ATerm t) |
equals, getAnnotation, getAnnotations, getFactory, getPureFactory, getUniqueIdentifier, hasAnnotations, hashCode, init, internSetAnnotations, isEqual, match, match, removeAnnotation, removeAnnotations, setAnnotation, setHashCode, setUniqueIdentifier, toString, writeToSharedTextFile, writeToTextFile, writeToTextFilegetChildAt, getChildCount, setChildAtclone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, getAnnotation, getAnnotations, getFactory, hasAnnotations, hashCode, isEqual, match, match, removeAnnotation, removeAnnotations, setAnnotation, toString, writeToSharedTextFile, writeToTextFilegetUniqueIdentifierprotected ATermApplImpl(PureFactory factory)
factory - protected ATermApplImpl(PureFactory factory, ATermList annos, AFun fun, ATerm[] i_args)
public int getType()
ATermgetType in interface ATermATerm.INT,
ATerm.REAL,
ATerm.APPL,
ATerm.LIST,
ATerm.PLACEHOLDER,
ATerm.BLOB,
ATerm.AFUN,
ATerm.LONGprotected void init(int hashCode,
ATermList annos,
AFun fun,
ATerm[] i_args)
hashCode - annos - fun - i_args - protected void initHashCode(ATermList annos, AFun fun, ATerm[] i_args)
annos - fun - i_args - public shared.SharedObject duplicate()
duplicate in interface shared.SharedObjectpublic boolean equivalent(shared.SharedObject obj)
equivalent in interface shared.SharedObjectpublic ATerm[] getArgumentArray()
ATermApplgetArgumentArray in interface ATermApplpublic AFun getAFun()
ATermApplpublic ATermList getArguments()
ATermApplgetArguments in interface ATermApplpublic ATerm getArgument(int index)
ATermApplgetArgument in interface ATermApplindex - the index of the argument to be retrieved.public ATermAppl setArgument(ATerm newarg, int index)
ATermApplsetArgument in interface ATermApplnewarg - the new ith argument.index - the index of the argument to be set.public boolean isQuoted()
ATermApplpublic String getName()
ATermApplpublic int getArity()
ATermApplpublic ATerm make(List<Object> arguments)
ATermpublic ATerm setAnnotations(ATermList annos)
ATermsetAnnotations in interface ATermannos - the annotations to set.ATerm.getAnnotations()public Visitable accept(Visitor v) throws jjtraveler.VisitFailure
jjtraveler.VisitFailurepublic int getNrSubTerms()
getNrSubTerms in class ATermImplpublic ATerm getSubTerm(int index)
getSubTerm in class ATermImplpublic ATerm setSubTerm(int index, ATerm t)
setSubTerm in class ATermImplprotected int hashFunction()
Copyright © 2012 CWI. All Rights Reserved.