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.Constants
ALL_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 Summary
Constructors Constructor Description Constant()
-
Method Summary
All 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
-
getType
public static int getType(Object object)
-
getName
public 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:
-
isString
public static boolean isString(Object key)
-
isModule
public static boolean isModule(Object key)
-
getType
public int getType()
-
getValue
public Object getValue()
-
getString
public String getString()
-
getLong
public Long getLong()
-
isNull
public static boolean isNull(Object obj)
-
isScalar
public static boolean isScalar(Object obj)
-
isStem
public static boolean isStem(Object obj)
-
isSet
public static boolean isSet(Object obj)
-
-