Logo Search packages:      
Sourcecode: rserve version File versions  Download package

static String org::rosuda::JRclient::REXP::xtName ( int  xt  )  [inline, static]

returns human-readable name of the xpression type as string. Arrays are denoted by a trailing asterisk (*).

Parameters:
xt xpression type
Returns:
name of the xpression type

Definition at line 431 of file REXP.java.

References XT_ARRAY_BOOL, XT_ARRAY_DOUBLE, XT_ARRAY_INT, XT_ARRAY_STR, XT_BOOL, XT_CLOS, XT_DOUBLE, XT_FACTOR, XT_INT, XT_LANG, XT_LIST, XT_NULL, XT_STR, XT_SYM, XT_UNKNOWN, and XT_VECTOR.

Referenced by toString().

                                        {
      if (xt==XT_NULL) return "NULL";
      if (xt==XT_INT) return "INT";
      if (xt==XT_STR) return "STRING";
      if (xt==XT_DOUBLE) return "REAL";
      if (xt==XT_BOOL) return "BOOL";
      if (xt==XT_ARRAY_INT) return "INT*";
      if (xt==XT_ARRAY_STR) return "STRING*";
      if (xt==XT_ARRAY_DOUBLE) return "REAL*";
      if (xt==XT_ARRAY_BOOL) return "BOOL*";
      if (xt==XT_SYM) return "SYMBOL";
      if (xt==XT_LANG) return "LANG";
      if (xt==XT_LIST) return "LIST";
      if (xt==XT_CLOS) return "CLOS";
      if (xt==XT_VECTOR) return "VECTOR";
      if (xt==XT_FACTOR) return "FACTOR";
      if (xt==XT_UNKNOWN) return "UNKNOWN";
      return "<unknown "+xt+">";
    } 


Generated by  Doxygen 1.6.0   Back to index