| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjess.RU
General utilities and manifest constants for Jess. All fields and methods in this class are static, and there is no constructor.
 (C) 2006 Sandia National Laboratories
| Field Summary | |
| static int | ACCUM_RESULTVariable is an accumulate result | 
| static int | ANDTest is anded with previous | 
| static int | ANY | 
| static int | ATOMDeprecated. use SYMBOL instead | 
| static int | BINDINGData type of variable binding stored in value (internal use) | 
| static int | DT_DATA_TYPERelative index of slot data type within a deftemplate's slots | 
| static int | DT_DFLT_DATARelative index of slot default value within a deftemplate's slots | 
| static int | DT_SLOT_NAMERelative index of slot name within a deftemplate's slots | 
| static int | DT_SLOT_SIZESize of a slot in a deftemplate | 
| static int | EXTERNAL_ADDRESSDeprecated. Since Jess 7, use JAVA_OBJECT instead. | 
| static int | FACTData type of a fact id | 
| static int | FLOATData type of float | 
| static int | FUNCALLData type of function call stored in a value | 
| static int | GLOBALVariable is global | 
| static int | INTEGERData type of integer | 
| static int | JAVA_OBJECTData type of arbitrary Java object | 
| static int | LAMBDAData type of a lambda expression | 
| static int | LEXEME | 
| static int | LISTData type of a list stored in a value | 
| static int | LOCALVariable is local to a defrule or deffunction | 
| static int | LONGData type of Java long | 
| static int | MULTISLOTData type of multislot name stored in a value | 
| static int | MULTIVARIABLEData type of multivariable | 
| static int | NONEData type of "no value" | 
| static int | NUMBER | 
| static int | ORTest is ored with previous | 
| static int | PATTERNVariable contains a fact index | 
| static int | SLOTData type of slot name stored in a value | 
| static int | STRINGData type of string | 
| static int | SYMBOLData type of symbol | 
| static int | VARIABLEData type of a variable | 
| Method Summary | |
| static java.lang.String | gensym(java.lang.String prefix)Generate a pseudo-unique symbol starting with "prefix" | 
| static java.lang.String | getProperty(java.lang.String prop)Get a property, but return null on SecurityException | 
| static int | getTypeCode(java.lang.String typeName) | 
| static java.lang.String | getTypeName(int type)Given a type constant (SYMBOL, STRING, INTEGER, etc.) return a String version of the name of that type ("SYMBOL", "STRING", "INTEGER", etc.) | 
| static Value | objectToValue(java.lang.Class clazz,
              java.lang.Object obj)Create a Jess Value object out of a Java Object. | 
| static java.lang.String | removePrefix(java.lang.String name) | 
| static java.lang.String | tagName(int tag) | 
| static java.lang.Object | valueToObject(java.lang.Class clazz,
              Value value,
              Context context)Return a Java object derived from the Value which matches the Class object as closely as possible. | 
| static java.lang.Object | valueToObject(java.lang.Class clazz,
              Value value,
              Context context,
              boolean strict)Return a Java object derived from the Value which matches the Class object as closely as possible. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final int DT_SLOT_NAME
public static final int DT_DFLT_DATA
public static final int DT_DATA_TYPE
public static final int DT_SLOT_SIZE
public static final int NONE
public static final int ATOM
public static final int SYMBOL
public static final int STRING
public static final int INTEGER
public static final int VARIABLE
public static final int FACT
public static final int FLOAT
public static final int FUNCALL
public static final int LIST
public static final int JAVA_OBJECT
public static final int LEXEME
public static final int ANY
public static final int EXTERNAL_ADDRESS
public static final int BINDING
public static final int MULTIVARIABLE
public static final int SLOT
public static final int MULTISLOT
public static final int LONG
public static final int LAMBDA
public static final int NUMBER
public static final int PATTERN
public static final int LOCAL
public static final int GLOBAL
public static final int ACCUM_RESULT
public static final int AND
public static final int OR
| Method Detail | 
public static java.lang.String getTypeName(int type)
type - One of the type constants in this class
public static int getTypeCode(java.lang.String typeName)
                       throws JessException
JessExceptionpublic static java.lang.String gensym(java.lang.String prefix)
prefix - The alphabetic part of the symbol
public static java.lang.String getProperty(java.lang.String prop)
prop - The property name to get
public static java.lang.String tagName(int tag)
public static java.lang.String removePrefix(java.lang.String name)
public static java.lang.Object valueToObject(java.lang.Class clazz,
                                             Value value,
                                             Context context)
                                      throws java.lang.IllegalArgumentException,
                                             JessException
clazz - the desired class of the resultvalue - the Value to be convertedcontext - a Context used for resolving the Value, if needed
java.lang.IllegalArgumentException - if the conversion is impossible
JessException - if anything else goes wrong
public static java.lang.Object valueToObject(java.lang.Class clazz,
                                             Value value,
                                             Context context,
                                             boolean strict)
                                      throws java.lang.IllegalArgumentException,
                                             JessException
clazz - the desired class of the resultvalue - the Value to be convertedcontext - a Context used for resolving the Value, if neededstrict - false to allow Strings to be parsed as numbers
java.lang.IllegalArgumentException - if the conversion is impossible
JessException - if anything else goes wrong
public static Value objectToValue(java.lang.Class clazz,
                                  java.lang.Object obj)
                           throws JessException
clazz - a Class representing the type of the other argumentobj - an object to be converted
JessException - if anything goes wrong| 
 | © 2007 Sandia Corporation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||