Package org.qdl_lang.variables
Class Constant
- java.lang.Object
- 
- org.qdl_lang.variables.Constant
 
- 
- 
Field Summary- 
Fields inherited from interface org.qdl_lang.variables.ConstantsALL_INDICES_NAME, ALL_INDICES_TYPE, ARG_COUNT_TYPE, AXIS_RESTRICTION_NAME, AXIS_RESTRICTION_TYPE, BOOLEAN_NAME, BOOLEAN_TYPE, DECIMAL_NAME, DECIMAL_TYPE, DYADIC_FUNCTION_NAME, DYADIC_FUNCTION_TYPE, FUNCTION_NAME, FUNCTION_TYPE, INTEGER_TYPE, LIST_NAME, LIST_TYPE, LONG_NAME, LONG_TYPE, MODULE_NAME, MODULE_TYPE, NULL_NAME, NULL_TYPE, SET_NAME, SET_TYPE, STEM_NAME, STEM_TYPE, STRING_NAME, STRING_TYPE, UNKNOWN_NAME, UNKNOWN_TYPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description Constant()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetLong()static StringgetName(int type)Given the (integer) type, return the string name.StringgetString()intgetType()static intgetType(Object object)ObjectgetValue()static booleanisModule(Object key)static booleanisNull(Object obj)static booleanisScalar(Object obj)static booleanisSet(Object obj)static booleanisStem(Object obj)static booleanisString(Object key)
 
- 
- 
- 
Method Detail- 
getTypepublic static int getType(Object object) 
 - 
getNamepublic static String getName(int type) Given the (integer) type, return the string name. This is used mostly for error or diagnostic messsages.- Parameters:
- type-
- Returns:
 
 - 
isStringpublic static boolean isString(Object key) 
 - 
isModulepublic static boolean isModule(Object key) 
 - 
getTypepublic int getType() 
 - 
getValuepublic Object getValue() 
 - 
getStringpublic String getString() 
 - 
getLongpublic Long getLong() 
 - 
isNullpublic static boolean isNull(Object obj) 
 - 
isScalarpublic static boolean isScalar(Object obj) 
 - 
isStempublic static boolean isStem(Object obj) 
 - 
isSetpublic static boolean isSet(Object obj) 
 
- 
 
-