|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectifs.util.PrologFile.Term
public static class PrologFile.Term
Term -- it can contain a text and a content (set of terms)
| Constructor Summary | |
|---|---|
PrologFile.Term(PrologFile.Term[] content)
constructor |
|
PrologFile.Term(String text)
constructor |
|
PrologFile.Term(String text,
PrologFile.Term[] content)
constructor |
|
PrologFile.Term(String text,
Vector content)
constructor |
|
PrologFile.Term(Vector content)
constructor |
|
| Method Summary | |
|---|---|
Object |
clone()
|
PrologFile.Term |
element(String name)
element of content named name |
PrologFile.Term |
elementAt(int idx)
idx-th element of content |
boolean |
equals(Object o)
|
Vector |
getContent()
return content |
String |
getText()
return text |
int |
indexOf(String name)
index of element of content named name |
int |
size()
content size |
boolean |
toBoolean()
return text as boolean |
boolean[] |
toBooleanArray()
return content as boolean array |
double |
toDouble()
return text as fouble |
int |
toInt()
return text as int |
int[] |
toIntArray()
return content as int array |
long |
toLong()
return text as long |
String |
toString()
string representation of term |
String[] |
toStringArray()
return content as string array |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrologFile.Term(String text)
public PrologFile.Term(Vector content)
public PrologFile.Term(String text,
Vector content)
public PrologFile.Term(String text,
PrologFile.Term[] content)
public PrologFile.Term(PrologFile.Term[] content)
| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic String getText()
public Vector getContent()
public int size()
public int toInt()
public long toLong()
public double toDouble()
public boolean toBoolean()
public boolean[] toBooleanArray()
public String[] toStringArray()
public int[] toIntArray()
public PrologFile.Term elementAt(int idx)
public PrologFile.Term element(String name)
public int indexOf(String name)
public String toString()
toString in class Objectpublic Object clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||