|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectaminePlatform.engines.prologPlusCG.util.Goal
Title: Goal
Description: A Goal in Prolog+CG can be a String, an identifier or a Variable (which is an Identifier), a Term, or a CG. A composed goal is represented as a Term.
Copyright: Copyright (c) Adil KABBAJ, 2004-2009
Field Summary |
Constructor Summary | |
Goal()
|
Method Summary | |
static java.lang.String |
getNameGoal(java.lang.Object goal,
Lexicon lexicon)
Get the identifier of the current term. |
static boolean |
isCG(java.lang.Object goal)
Check if the current term corresponds to a goal that is represented by a CG (in the context of Prolog+CG). |
static boolean |
isComposedGoal(java.lang.Object goal)
Test if the specified term corresponds to a composed goal : term::term. |
static boolean |
isGoal(java.lang.Object obj)
A Goal in Prolog+CG can be a String, an identifier or a Variable (which is an Identifier), a Term, or a CG. |
static boolean |
isIdentOrString(java.lang.Object goal)
check if the term correspond to an identifier or a string without arguments |
static boolean |
isTerm(java.lang.Object goal)
|
static boolean |
isVariable(java.lang.Object goal)
Test if the specified term corresponds to a variable goal (in the context of Prolog+CG) |
static java.lang.String |
signature(java.lang.Object goal,
Lexicon lexicon)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Goal()
Method Detail |
public static boolean isGoal(java.lang.Object obj)
obj
-
public static java.lang.String getNameGoal(java.lang.Object goal, Lexicon lexicon)
public static boolean isComposedGoal(java.lang.Object goal)
public static boolean isTerm(java.lang.Object goal)
public static boolean isVariable(java.lang.Object goal)
public static boolean isIdentOrString(java.lang.Object goal)
public static boolean isCG(java.lang.Object goal)
public static java.lang.String signature(java.lang.Object goal, Lexicon lexicon)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |