|
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaterm.pure.ATermVisitableImpl
aterm.pure.ATermImpl
aterm.pure.ATermApplImpl
public class ATermApplImpl
| Field Summary | |
|---|---|
private ATerm[] |
args
|
private AFun |
fun
|
| Fields inherited from class aterm.pure.ATermImpl |
|---|
factory |
| Fields inherited from interface aterm.ATerm |
|---|
AFUN, APPL, BLOB, INT, LIST, LONG, PLACEHOLDER, REAL |
| Constructor Summary | |
|---|---|
protected |
ATermApplImpl(PureFactory factory)
|
protected |
ATermApplImpl(PureFactory factory,
ATermList annos,
AFun fun,
ATerm[] i_args)
|
| Method Summary | |
|---|---|
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. |
java.lang.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(java.util.List<java.lang.Object> arguments)
Create a new term based on this term as a pattern and a list of arguments. |
protected boolean |
match(ATerm pattern,
java.util.List<java.lang.Object> list)
|
(package private) boolean |
matchArguments(ATerm[] pattern_args,
java.util.List<java.lang.Object> list)
|
private java.lang.Object[] |
serialize()
|
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)
|
private static int |
staticDoobs_hashFuntion(java.lang.Object[] o)
|
| Methods inherited from class aterm.pure.ATermImpl |
|---|
equals, getAnnotation, getAnnotations, getFactory, getPureFactory, getUniqueIdentifier, hasAnnotations, hashCode, init, internSetAnnotations, isEqual, match, match, removeAnnotation, removeAnnotations, setAnnotation, setHashCode, setUniqueIdentifier, toString, writeToSharedTextFile, writeToTextFile, writeToTextFile |
| Methods inherited from class aterm.pure.ATermVisitableImpl |
|---|
getChildAt, getChildCount, setChildAt |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface aterm.ATerm |
|---|
equals, getAnnotation, getAnnotations, getFactory, hasAnnotations, hashCode, isEqual, match, match, removeAnnotation, removeAnnotations, setAnnotation, toString, writeToSharedTextFile, writeToTextFile |
| Methods inherited from interface jjtraveler.Visitable |
|---|
getChildAt, getChildCount, setChildAt |
| Methods inherited from interface aterm.Identifiable |
|---|
getUniqueIdentifier |
| Field Detail |
|---|
private AFun fun
private ATerm[] args
| Constructor Detail |
|---|
protected ATermApplImpl(PureFactory factory)
factory -
protected ATermApplImpl(PureFactory factory,
ATermList annos,
AFun fun,
ATerm[] i_args)
| Method Detail |
|---|
public int getType()
ATerm
getType in interface ATermATerm.INT,
ATerm.REAL,
ATerm.APPL,
ATerm.LIST,
ATerm.PLACEHOLDER,
ATerm.BLOB,
ATerm.AFUN,
ATerm.LONG
protected 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.SharedObject
protected ATermAppl make(AFun fun,
ATerm[] i_args,
ATermList annos)
protected ATermAppl make(AFun fun,
ATerm[] i_args)
public boolean equivalent(shared.SharedObject obj)
equivalent in interface shared.SharedObject
protected boolean match(ATerm pattern,
java.util.List<java.lang.Object> list)
match in class ATermImpl
boolean matchArguments(ATerm[] pattern_args,
java.util.List<java.lang.Object> list)
public ATerm[] getArgumentArray()
ATermAppl
getArgumentArray in interface ATermApplpublic AFun getAFun()
ATermAppl
getAFun in interface ATermApplpublic ATermList getArguments()
ATermAppl
getArguments in interface ATermApplpublic ATerm getArgument(int index)
ATermAppl
getArgument in interface ATermApplindex - the index of the argument to be retrieved.
public ATermAppl setArgument(ATerm newarg,
int index)
ATermAppl
setArgument in interface ATermApplnewarg - the new ith argument.index - the index of the argument to be set.
public boolean isQuoted()
ATermAppl
isQuoted in interface ATermApplpublic java.lang.String getName()
ATermAppl
getName in interface ATermApplpublic int getArity()
ATermAppl
getArity in interface ATermApplpublic ATerm make(java.util.List<java.lang.Object> arguments)
ATerm
make in interface ATermmake in class ATermImplarguments - the list of arguments used to fill up holes in the pattern
public ATerm setAnnotations(ATermList annos)
ATerm
setAnnotations 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 ATermImpl
public ATerm setSubTerm(int index,
ATerm t)
setSubTerm in class ATermImplprivate java.lang.Object[] serialize()
protected int hashFunction()
private static int staticDoobs_hashFuntion(java.lang.Object[] o)
|
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||