| Modifier and Type | Field and Description | 
|---|---|
static int | 
DIRECTIVE  | 
static int | 
FUNCTOR  | 
static int | 
PREDICATE  | 
| Constructor and Description | 
|---|
PrimitiveInfo(int type,
             String key,
             Library lib,
             Method m,
             int arity)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
evalAsDirective(Struct g)
evaluates the primitive as a directive 
 | 
Term | 
evalAsFunctor(Struct g)
evaluates the primitive as a functor 
 | 
boolean | 
evalAsPredicate(Struct g)
evaluates the primitive as a predicate 
 | 
String | 
getKey()  | 
IPrimitives | 
getSource()  | 
int | 
getType()  | 
String | 
invalidate()
Method to invalidate primitives. 
 | 
boolean | 
isDirective()  | 
boolean | 
isFunctor()  | 
boolean | 
isPredicate()  | 
String | 
toString()  | 
public static final int DIRECTIVE
public static final int PREDICATE
public static final int FUNCTOR
public PrimitiveInfo(int type,
             String key,
             Library lib,
             Method m,
             int arity)
              throws NoSuchMethodException
NoSuchMethodExceptionpublic String invalidate()
public String getKey()
public boolean isDirective()
public boolean isFunctor()
public boolean isPredicate()
public int getType()
public IPrimitives getSource()
public void evalAsDirective(Struct g) throws IllegalAccessException, InvocationTargetException
InvocationTargetExceptionIllegalAccessExceptionException - if invocation directive failurepublic boolean evalAsPredicate(Struct g) throws Throwable
Copyright © 2015. All rights reserved.