| 
        .NET Framework | |||||||||
| PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT | |||||||||
Term is the base for .NET representations of Prolog terms.
| Field Summary | |
|---|---|
| string | 
          name
           | 
      
| Property Summary | |
|---|---|
| int | 
          Arity
           Returns the number of arguments of this compound term or 0 if this term is not a compound term.  | 
      
| bool | 
          Atom
           Returns true if this term is an atom and false otherwise.  | 
      
| bool | 
          Atomic
           Returns true if this term is a constant (e.g. integer, floating-point number, or atom) and false if this term is a compound term or variable.  | 
      
| bool | 
          Compound
           Returns true if this term is a compund term and false otherwise.  | 
      
| bool | 
          Float
           Returns true if this term is a floating-point number and false otherwise.  | 
      
| bool | 
          Integer
           Returns true if this term is an integer and false otherwise.  | 
      
| bool | 
          IsString
           Returns true if this term is an instance of PBString (which can be used for fast string access) and false otherwise.  | 
      
| bool | 
          List
           Returns true if this term is a list and false otherwise.  | 
      
| string | 
          Name
           Returns the name of this constant or compound term.  | 
      
| bool | 
          Variable
           Returns true if this term is a variable and false otherwise.  | 
      
| Method Summary | |
|---|---|
| double | 
          doubleValue() Returns the floating-point value of this term. if this term is not a number  | 
      
| float | 
          floatValue() Returns the floating-point value of this term. if this term is not a number  | 
      
| se.sics.prologbeans.Term | 
          getArgument(int index) Returns the argument at the specified index. Only compound terms have arguments. Note: the arguments are indexed from 1 to arity.  | 
      
| int | 
          intValue() Returns the integer value of this term. if this term is not an integer  | 
      
| long | 
          longValue() Returns the integer value of this term. if this term is not an integer  | 
      
| string | 
          stuffAtom(string atom) | 
      
| string | 
          ToString() Returns a string description of this term.  | 
      
| Methods inherited from class System.Object | 
|---|
| Equals, Finalize, GetHashCode, GetType, MemberwiseClone | 
| Field Detail | 
|---|
protected internal string name
| Property Detail | 
|---|
public int Arity
Returns the number of arguments of this compound term or 0 if this term is not a compound term.
public bool Atom
Returns true if this term is an atom and false otherwise.
public bool Atomic
Returns true if this term is a constant (e.g. integer, floating-point number, or atom) and false if this term is a compound term or variable.
public bool Compound
Returns true if this term is a compund term and false otherwise.
public bool Float
Returns true if this term is a floating-point number and false otherwise.
public bool Integer
Returns true if this term is an integer and false otherwise.
public bool IsString
Returns true if this term is an instance of PBString (which can be used for fast string access) and false otherwise.
public bool List
Returns true if this term is a list and false otherwise.
public string Name
Returns the name of this constant or compound term.
public bool Variable
Returns true if this term is a variable and false otherwise.
| Method Detail | 
|---|
public double doubleValue()
Returns the floating-point value of this term. if this term is not a number
public float floatValue()
Returns the floating-point value of this term. if this term is not a number
public se.sics.prologbeans.Term getArgument(int index)
Returns the argument at the specified index. Only compound terms have arguments. Note: the arguments are indexed from 1 to arity.
Parameters:
index - the (one based) index of the argument
            System.SystemException -  if this term is not compound
            public int intValue()
Returns the integer value of this term. if this term is not an integer
public long longValue()
Returns the integer value of this term. if this term is not an integer
protected internal string stuffAtom(string atom)
public string ToString()
Returns a string description of this term.
          
  | 
        .NET Framework | |||||||||
| PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT | |||||||||