|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttom.engine.adt.tomconstraint.TomConstraintAbstractType
tom.engine.adt.tomconstraint.types.Constraint
tom.engine.adt.tomconstraint.types.constraint.OrConstraint
public abstract class OrConstraint
Field Summary |
---|
Fields inherited from class tom.engine.adt.tomconstraint.types.Constraint |
---|
idConv |
Fields inherited from class tom.engine.adt.tomconstraint.TomConstraintAbstractType |
---|
atermFactory, factory |
Constructor Summary | |
---|---|
OrConstraint()
|
Method Summary | ||
---|---|---|
boolean |
add(Constraint o)
|
|
boolean |
addAll(Collection<? extends Constraint> c)
|
|
Constraint |
append(Constraint element)
Appends an element |
|
void |
clear()
|
|
boolean |
contains(Object o)
Checks if tom.engine.adt.tomconstraint.types.Constraint contains a specified object |
|
boolean |
containsAll(Collection c)
|
|
static Constraint |
fromArray(Constraint[] array)
|
|
static Constraint |
fromTerm(aterm.ATerm trm,
ATermConverter atConv)
Apply a conversion on the ATerm contained in the String and returns a tom.engine.adt.tomconstraint.types.Constraint from it |
|
Collection<Constraint> |
getCollection()
|
|
Collection<Constraint> |
getCollectionOrConstraint()
Returns a Collection extracted from the term |
|
boolean |
isEmpty()
Checks the emptiness |
|
Iterator<Constraint> |
iterator()
|
|
int |
length()
Returns the number of arguments of the variadic operator |
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection c)
|
|
boolean |
retainAll(Collection c)
|
|
Constraint |
reverse()
Inverses the term if it is a list |
|
int |
size()
Returns the size of the collection |
|
Object[] |
toArray()
Returns an array containing the elements of the collection |
|
|
toArray(T[] array)
|
|
aterm.ATerm |
toATerm()
Returns an ATerm representation of this term. |
|
void |
toStringBuilder(StringBuilder buffer)
Appends a string representation of this term to the buffer given as argument. |
Methods inherited from class tom.engine.adt.tomconstraint.TomConstraintAbstractType |
---|
compareTo, compareToLPO, convertATermToBoolean, convertATermToChar, convertATermToDouble, convertATermToFloat, convertATermToInt, convertATermToLong, convertATermToString, getUniqueIdentifier, setUniqueIdentifier, symbolName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Methods inherited from interface shared.SharedObject |
---|
duplicate, equivalent, hashCode |
Methods inherited from interface tom.library.sl.Visitable |
---|
getChildAt, getChildCount, getChildren, setChildAt, setChildren |
Constructor Detail |
---|
public OrConstraint()
Method Detail |
---|
public int length()
length
in class Constraint
public static Constraint fromArray(Constraint[] array)
public Constraint reverse()
reverse
in class Constraint
public Constraint append(Constraint element)
element
- element which has to be added
public void toStringBuilder(StringBuilder buffer)
toStringBuilder
in class TomConstraintAbstractType
buffer
- the buffer to which a string represention of this term is appended.public aterm.ATerm toATerm()
toATerm
in class Constraint
public static Constraint fromTerm(aterm.ATerm trm, ATermConverter atConv)
trm
- ATerm to convert into a Gom termatConv
- ATerm Converter used to convert the ATerm
public boolean containsAll(Collection c)
containsAll
in interface Collection<Constraint>
public boolean contains(Object o)
contains
in interface Collection<Constraint>
o
- object whose presence is tested
public boolean isEmpty()
isEmpty
in interface Collection<Constraint>
public Iterator<Constraint> iterator()
iterator
in interface Iterable<Constraint>
iterator
in interface Collection<Constraint>
public boolean add(Constraint o)
add
in interface Collection<Constraint>
public boolean addAll(Collection<? extends Constraint> c)
addAll
in interface Collection<Constraint>
public boolean remove(Object o)
remove
in interface Collection<Constraint>
public void clear()
clear
in interface Collection<Constraint>
public boolean removeAll(Collection c)
removeAll
in interface Collection<Constraint>
public boolean retainAll(Collection c)
retainAll
in interface Collection<Constraint>
public int size()
size
in interface Collection<Constraint>
public Object[] toArray()
toArray
in interface Collection<Constraint>
public <T> T[] toArray(T[] array)
toArray
in interface Collection<Constraint>
public Collection<Constraint> getCollection()
public Collection<Constraint> getCollectionOrConstraint()
Constraint
getCollectionOrConstraint
in class Constraint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |