public class Struct extends EvaluableTerm
Modifier and Type | Field and Description |
---|---|
int |
arity
speedup hash map operation
|
String |
name |
int |
operatorType |
String |
predicateIndicator |
Constructor and Description |
---|
Struct(String f,
Term[] argList)
Compound struct with an array of arguments
|
Struct(String f,
Term[] argList,
int opType)
Struct representing an operator
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object t) |
Term |
getArg(int index)
Gets the i-th element of this structure
No bound check is done
|
int |
getOperatorType() |
Var[] |
getVarList() |
static Iterator |
iterator(Struct structList) |
String |
toString()
Gets the string representation of this structure
Specific representations are provided for lists and atoms.
|
String |
toStringList(boolean small) |
String |
toStringSmall() |
public final String name
public final String predicateIndicator
public final int arity
public int operatorType
public Var[] getVarList()
public Term getArg(int index)
public int getOperatorType()
public String toString()
public String toStringList(boolean small)
public String toStringSmall()
toStringSmall
in class Term
Copyright © 2020–2024 Prolobjectlink Project. All rights reserved.