|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
PBList is the .NET representation of Prolog lists.
Field Summary | |
---|---|
se.sics.prologbeans.Term |
nextTerm
|
Fields inherited from class se.sics.prologbeans.PBCompound |
---|
arguments |
Fields inherited from class se.sics.prologbeans.Term |
---|
name |
Property Summary | |
---|---|
int |
Arity
|
se.sics.prologbeans.Term |
End
Returns the end of this list. For closed lists this element is the empty list. |
int |
Length
Returns the length of this list. Please note: this does not correspond to the predicate length/1. |
bool |
List
|
Properties inherited from class se.sics.prologbeans.PBCompound |
---|
Atom, Atomic |
Properties inherited from class se.sics.prologbeans.Term |
---|
Compound, Float, Integer, IsString, Name, Variable |
Method Summary | |
---|---|
se.sics.prologbeans.Term |
getArgument(int index) Returns the first or second argument of this list node. Only non-empty lists have arguments. Note: the arguments are indexed from 1 to 2. Due to performance reasons this should be avoided if not 100% necessary. Please use getTermAt(int index) for accessing the elements of lists. |
se.sics.prologbeans.Term |
getTermAt(int index) Returns the element at the specified index in this list. Note: the elements are indexed from 1 to length. |
string |
ToString() |
Methods inherited from class se.sics.prologbeans.Term |
---|
doubleValue, floatValue, intValue, longValue, stuffAtom |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone |
Field Detail |
---|
protected internal se.sics.prologbeans.Term nextTerm
Property Detail |
---|
public int Arity
public se.sics.prologbeans.Term End
Returns the end of this list. For closed lists this element is the empty list.
public int Length
Returns the length of this list. Please note: this does not correspond to the predicate
length/1.
public bool List
Method Detail |
---|
public se.sics.prologbeans.Term getArgument(int index)
Returns the first or second argument of this list node. Only non-empty lists have arguments. Note: the arguments are indexed from 1 to 2. Due to performance reasons this should be avoided if not 100% necessary. Please use getTermAt(int index) for accessing the elements of lists.
Parameters:
index
- the (one based) index of the argument
System.SystemException
- if this term is not compound
public se.sics.prologbeans.Term getTermAt(int index)
Returns the element at the specified index in this list. Note: the elements are indexed from 1 to length.
Parameters:
index
- the (one based) index of the element in this list
public string ToString()
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |