PageRenderTime 57ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/bsh/Primitive.html

#
HTML | 929 lines | 815 code | 100 blank | 14 comment | 0 complexity | a312b6b63017320ceabdbe87534479d1 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:13:50 GMT-08:00 2008 -->
  6. <TITLE>
  7. Primitive (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.bsh.Primitive class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
  11. <NOSCRIPT>
  12. </NOSCRIPT>
  13. </HEAD>
  14. <BODY BGCOLOR="white" >
  15. <!-- ========= START OF TOP NAVBAR ======= -->
  16. <A NAME="navbar_top"><!-- --></A>
  17. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  18. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  19. <TR>
  20. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  21. <A NAME="navbar_top_firstrow"><!-- --></A>
  22. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  23. <TR ALIGN="center" VALIGN="top">
  24. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  25. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  26. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Primitive.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  32. </TR>
  33. </TABLE>
  34. </TD>
  35. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  36. </EM>
  37. </TD>
  38. </TR>
  39. <TR>
  40. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  41. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserTreeConstants.html" title="interface in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/ReflectManager.html" title="class in org.gjt.sp.jedit.bsh"><B>NEXT CLASS</B></A></FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../../index.html?org/gjt/sp/jedit/bsh/Primitive.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="Primitive.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  46. &nbsp;
  47. <NOSCRIPT>
  48. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  49. </NOSCRIPT>
  50. </FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  54. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  55. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  56. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  57. </TR>
  58. </TABLE>
  59. <A NAME="skip-navbar_top"></A>
  60. <!-- ========= END OF TOP NAVBAR ========= -->
  61. <HR>
  62. <!-- ======== START OF CLASS DATA ======== -->
  63. <H2>
  64. <FONT SIZE="-1">
  65. org.gjt.sp.jedit.bsh</FONT>
  66. <BR>
  67. Class Primitive</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.bsh.Primitive</B>
  71. </PRE>
  72. <DL>
  73. <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html" title="interface in org.gjt.sp.jedit.bsh">ParserConstants</A></DD>
  74. </DL>
  75. <HR>
  76. <DL>
  77. <DT><PRE>public final class <B>Primitive</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html" title="interface in org.gjt.sp.jedit.bsh">ParserConstants</A>, java.io.Serializable</DL>
  78. </PRE>
  79. <P>
  80. Wrapper for primitive types in Bsh. This is package public because it
  81. is used in the implementation of some bsh commands.
  82. See the note in LHS.java about wrapping objects.
  83. <P>
  84. <P>
  85. <DL>
  86. <DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#org.gjt.sp.jedit.bsh.Primitive">Serialized Form</A></DL>
  87. <HR>
  88. <P>
  89. <!-- =========== FIELD SUMMARY =========== -->
  90. <A NAME="field_summary"><!-- --></A>
  91. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  92. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  93. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  94. <B>Field Summary</B></FONT></TH>
  95. </TR>
  96. <TR BGCOLOR="white" CLASS="TableRowColor">
  97. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  98. <CODE>static&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh">Primitive</A></CODE></FONT></TD>
  99. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#NULL">NULL</A></B></CODE>
  100. <BR>
  101. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  102. </TR>
  103. <TR BGCOLOR="white" CLASS="TableRowColor">
  104. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  105. <CODE>static&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh">Primitive</A></CODE></FONT></TD>
  106. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#VOID">VOID</A></B></CODE>
  107. <BR>
  108. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VOID means "no type".</TD>
  109. </TR>
  110. </TABLE>
  111. &nbsp;<A NAME="fields_inherited_from_class_org.gjt.sp.jedit.bsh.ParserConstants"><!-- --></A>
  112. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  113. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  114. <TH ALIGN="left"><B>Fields inherited from interface org.gjt.sp.jedit.bsh.<A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html" title="interface in org.gjt.sp.jedit.bsh">ParserConstants</A></B></TH>
  115. </TR>
  116. <TR BGCOLOR="white" CLASS="TableRowColor">
  117. <TD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#_DEFAULT">_DEFAULT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#ABSTRACT">ABSTRACT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#ANDASSIGN">ANDASSIGN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#ANDASSIGNX">ANDASSIGNX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#ASSIGN">ASSIGN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#BANG">BANG</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#BIT_AND">BIT_AND</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#BIT_ANDX">BIT_ANDX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#BIT_OR">BIT_OR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#BIT_ORX">BIT_ORX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#BOOL_AND">BOOL_AND</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#BOOL_ANDX">BOOL_ANDX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#BOOL_OR">BOOL_OR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#BOOL_ORX">BOOL_ORX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#BOOLEAN">BOOLEAN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#BREAK">BREAK</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#BYTE">BYTE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#CASE">CASE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#CATCH">CATCH</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#CHAR">CHAR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#CHARACTER_LITERAL">CHARACTER_LITERAL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#CLASS">CLASS</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#COLON">COLON</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#COMMA">COMMA</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#CONST">CONST</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#CONTINUE">CONTINUE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#DECIMAL_LITERAL">DECIMAL_LITERAL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#DECR">DECR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#DEFAULT">DEFAULT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#DIGIT">DIGIT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#DO">DO</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#DOT">DOT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#DOUBLE">DOUBLE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#ELSE">ELSE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#ENUM">ENUM</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#EOF">EOF</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#EQ">EQ</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#EXPONENT">EXPONENT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#EXTENDS">EXTENDS</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#FALSE">FALSE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#FINAL">FINAL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#FINALLY">FINALLY</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#FLOAT">FLOAT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#FLOATING_POINT_LITERAL">FLOATING_POINT_LITERAL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#FOR">FOR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#FORMAL_COMMENT">FORMAL_COMMENT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#GE">GE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#GEX">GEX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#GOTO">GOTO</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#GT">GT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#GTX">GTX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#HASH_BANG_COMMENT">HASH_BANG_COMMENT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#HEX_LITERAL">HEX_LITERAL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#HOOK">HOOK</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#IDENTIFIER">IDENTIFIER</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#IF">IF</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#IMPLEMENTS">IMPLEMENTS</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#IMPORT">IMPORT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#INCR">INCR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#INSTANCEOF">INSTANCEOF</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#INT">INT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#INTEGER_LITERAL">INTEGER_LITERAL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#INTERFACE">INTERFACE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#LBRACE">LBRACE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#LBRACKET">LBRACKET</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#LE">LE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#LETTER">LETTER</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#LEX">LEX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#LONG">LONG</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#LPAREN">LPAREN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#LSHIFT">LSHIFT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#LSHIFTASSIGN">LSHIFTASSIGN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#LSHIFTASSIGNX">LSHIFTASSIGNX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#LSHIFTX">LSHIFTX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#LT">LT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#LTX">LTX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#MINUS">MINUS</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#MINUSASSIGN">MINUSASSIGN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#MOD">MOD</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#MODASSIGN">MODASSIGN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#MULTI_LINE_COMMENT">MULTI_LINE_COMMENT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#NATIVE">NATIVE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#NE">NE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#NEW">NEW</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#NONPRINTABLE">NONPRINTABLE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#OCTAL_LITERAL">OCTAL_LITERAL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#ORASSIGN">ORASSIGN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#ORASSIGNX">ORASSIGNX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#PACKAGE">PACKAGE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#PLUS">PLUS</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#PLUSASSIGN">PLUSASSIGN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#PRIVATE">PRIVATE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#PROTECTED">PROTECTED</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#PUBLIC">PUBLIC</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#RBRACE">RBRACE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#RBRACKET">RBRACKET</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#RETURN">RETURN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#RPAREN">RPAREN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#RSIGNEDSHIFT">RSIGNEDSHIFT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#RSIGNEDSHIFTASSIGN">RSIGNEDSHIFTASSIGN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#RSIGNEDSHIFTASSIGNX">RSIGNEDSHIFTASSIGNX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#RSIGNEDSHIFTX">RSIGNEDSHIFTX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#RUNSIGNEDSHIFT">RUNSIGNEDSHIFT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#RUNSIGNEDSHIFTASSIGN">RUNSIGNEDSHIFTASSIGN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#RUNSIGNEDSHIFTASSIGNX">RUNSIGNEDSHIFTASSIGNX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#RUNSIGNEDSHIFTX">RUNSIGNEDSHIFTX</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#SEMICOLON">SEMICOLON</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#SHORT">SHORT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#SINGLE_LINE_COMMENT">SINGLE_LINE_COMMENT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#SLASH">SLASH</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#SLASHASSIGN">SLASHASSIGN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#STAR">STAR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#STARASSIGN">STARASSIGN</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#STATIC">STATIC</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#STRICTFP">STRICTFP</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#STRING_LITERAL">STRING_LITERAL</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#SWITCH">SWITCH</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#SYNCHRONIZED">SYNCHRONIZED</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#THROW">THROW</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#THROWS">THROWS</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#TILDE">TILDE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#tokenImage">tokenImage</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#TRANSIENT">TRANSIENT</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#TRUE">TRUE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#TRY">TRY</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#VOLATILE">VOLATILE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#WHILE">WHILE</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#XOR">XOR</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserConstants.html#XORASSIGN">XORASSIGN</A></CODE></TD>
  118. </TR>
  119. </TABLE>
  120. &nbsp;
  121. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  122. <A NAME="constructor_summary"><!-- --></A>
  123. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  124. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  125. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  126. <B>Constructor Summary</B></FONT></TH>
  127. </TR>
  128. <TR BGCOLOR="white" CLASS="TableRowColor">
  129. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#Primitive(boolean)">Primitive</A></B>(boolean&nbsp;value)</CODE>
  130. <BR>
  131. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  132. </TR>
  133. <TR BGCOLOR="white" CLASS="TableRowColor">
  134. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#Primitive(byte)">Primitive</A></B>(byte&nbsp;value)</CODE>
  135. <BR>
  136. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  137. </TR>
  138. <TR BGCOLOR="white" CLASS="TableRowColor">
  139. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#Primitive(char)">Primitive</A></B>(char&nbsp;value)</CODE>
  140. <BR>
  141. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  142. </TR>
  143. <TR BGCOLOR="white" CLASS="TableRowColor">
  144. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#Primitive(double)">Primitive</A></B>(double&nbsp;value)</CODE>
  145. <BR>
  146. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  147. </TR>
  148. <TR BGCOLOR="white" CLASS="TableRowColor">
  149. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#Primitive(float)">Primitive</A></B>(float&nbsp;value)</CODE>
  150. <BR>
  151. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  152. </TR>
  153. <TR BGCOLOR="white" CLASS="TableRowColor">
  154. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#Primitive(int)">Primitive</A></B>(int&nbsp;value)</CODE>
  155. <BR>
  156. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  157. </TR>
  158. <TR BGCOLOR="white" CLASS="TableRowColor">
  159. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#Primitive(long)">Primitive</A></B>(long&nbsp;value)</CODE>
  160. <BR>
  161. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  162. </TR>
  163. <TR BGCOLOR="white" CLASS="TableRowColor">
  164. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#Primitive(java.lang.Object)">Primitive</A></B>(java.lang.Object&nbsp;value)</CODE>
  165. <BR>
  166. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  167. </TR>
  168. <TR BGCOLOR="white" CLASS="TableRowColor">
  169. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#Primitive(short)">Primitive</A></B>(short&nbsp;value)</CODE>
  170. <BR>
  171. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  172. </TR>
  173. </TABLE>
  174. &nbsp;
  175. <!-- ========== METHOD SUMMARY =========== -->
  176. <A NAME="method_summary"><!-- --></A>
  177. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  178. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  179. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  180. <B>Method Summary</B></FONT></TH>
  181. </TR>
  182. <TR BGCOLOR="white" CLASS="TableRowColor">
  183. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  184. <CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
  185. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#binaryOperation(java.lang.Object, java.lang.Object, int)">binaryOperation</A></B>(java.lang.Object&nbsp;obj1,
  186. java.lang.Object&nbsp;obj2,
  187. int&nbsp;kind)</CODE>
  188. <BR>
  189. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perform a binary operation on two Primitives or wrapper types.</TD>
  190. </TR>
  191. <TR BGCOLOR="white" CLASS="TableRowColor">
  192. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  193. <CODE>&nbsp;boolean</CODE></FONT></TD>
  194. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#booleanValue()">booleanValue</A></B>()</CODE>
  195. <BR>
  196. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  197. </TR>
  198. <TR BGCOLOR="white" CLASS="TableRowColor">
  199. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  200. <CODE>static&nbsp;java.lang.Class</CODE></FONT></TD>
  201. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#boxType(java.lang.Class)">boxType</A></B>(java.lang.Class&nbsp;primitiveType)</CODE>
  202. <BR>
  203. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the corresponding java.lang wrapper class for the primitive TYPE
  204. class.</TD>
  205. </TR>
  206. <TR BGCOLOR="white" CLASS="TableRowColor">
  207. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  208. <CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh">Primitive</A></CODE></FONT></TD>
  209. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#castToType(java.lang.Class, int)">castToType</A></B>(java.lang.Class&nbsp;toType,
  210. int&nbsp;operation)</CODE>
  211. <BR>
  212. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cast this bsh.Primitive value to a new bsh.Primitive value
  213. This is usually a numeric type cast.</TD>
  214. </TR>
  215. <TR BGCOLOR="white" CLASS="TableRowColor">
  216. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  217. <CODE>&nbsp;boolean</CODE></FONT></TD>
  218. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;obj)</CODE>
  219. <BR>
  220. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Primitives compare equal with other Primitives containing an equal
  221. wrapped value.</TD>
  222. </TR>
  223. <TR BGCOLOR="white" CLASS="TableRowColor">
  224. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  225. <CODE>static&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh">Primitive</A></CODE></FONT></TD>
  226. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#getDefaultValue(java.lang.Class)">getDefaultValue</A></B>(java.lang.Class&nbsp;type)</CODE>
  227. <BR>
  228. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the appropriate default value per JLS 4.5.4</TD>
  229. </TR>
  230. <TR BGCOLOR="white" CLASS="TableRowColor">
  231. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  232. <CODE>&nbsp;java.lang.Class</CODE></FONT></TD>
  233. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#getType()">getType</A></B>()</CODE>
  234. <BR>
  235. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the corresponding Java primitive TYPE class for this Primitive.</TD>
  236. </TR>
  237. <TR BGCOLOR="white" CLASS="TableRowColor">
  238. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  239. <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
  240. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#getValue()">getValue</A></B>()</CODE>
  241. <BR>
  242. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the primitive value stored in its java.lang wrapper class</TD>
  243. </TR>
  244. <TR BGCOLOR="white" CLASS="TableRowColor">
  245. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  246. <CODE>&nbsp;int</CODE></FONT></TD>
  247. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#hashCode()">hashCode</A></B>()</CODE>
  248. <BR>
  249. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The hash of the Primitive is tied to the hash of the wrapped value but
  250. shifted so that they are not the same.</TD>
  251. </TR>
  252. <TR BGCOLOR="white" CLASS="TableRowColor">
  253. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  254. <CODE>&nbsp;int</CODE></FONT></TD>
  255. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#intValue()">intValue</A></B>()</CODE>
  256. <BR>
  257. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  258. </TR>
  259. <TR BGCOLOR="white" CLASS="TableRowColor">
  260. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  261. <CODE>&nbsp;boolean</CODE></FONT></TD>
  262. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#isNumber()">isNumber</A></B>()</CODE>
  263. <BR>
  264. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determine if this primitive is a numeric type.</TD>
  265. </TR>
  266. <TR BGCOLOR="white" CLASS="TableRowColor">
  267. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  268. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  269. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#isWrapperType(java.lang.Class)">isWrapperType</A></B>(java.lang.Class&nbsp;type)</CODE>
  270. <BR>
  271. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  272. </TR>
  273. <TR BGCOLOR="white" CLASS="TableRowColor">
  274. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  275. <CODE>&nbsp;java.lang.Number</CODE></FONT></TD>
  276. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#numberValue()">numberValue</A></B>()</CODE>
  277. <BR>
  278. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  279. </TR>
  280. <TR BGCOLOR="white" CLASS="TableRowColor">
  281. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  282. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  283. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#toString()">toString</A></B>()</CODE>
  284. <BR>
  285. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  286. </TR>
  287. <TR BGCOLOR="white" CLASS="TableRowColor">
  288. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  289. <CODE>static&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh">Primitive</A></CODE></FONT></TD>
  290. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#unaryOperation(org.gjt.sp.jedit.bsh.Primitive, int)">unaryOperation</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh">Primitive</A>&nbsp;val,
  291. int&nbsp;kind)</CODE>
  292. <BR>
  293. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  294. </TR>
  295. <TR BGCOLOR="white" CLASS="TableRowColor">
  296. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  297. <CODE>static&nbsp;java.lang.Class</CODE></FONT></TD>
  298. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#unboxType(java.lang.Class)">unboxType</A></B>(java.lang.Class&nbsp;wrapperType)</CODE>
  299. <BR>
  300. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the corresponding primitive TYPE class for the java.lang wrapper
  301. class type.</TD>
  302. </TR>
  303. <TR BGCOLOR="white" CLASS="TableRowColor">
  304. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  305. <CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
  306. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#unwrap(java.lang.Object)">unwrap</A></B>(java.lang.Object&nbsp;obj)</CODE>
  307. <BR>
  308. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unwrap primitive values and map voids to nulls.</TD>
  309. </TR>
  310. <TR BGCOLOR="white" CLASS="TableRowColor">
  311. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  312. <CODE>static&nbsp;java.lang.Object[]</CODE></FONT></TD>
  313. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#unwrap(java.lang.Object[])">unwrap</A></B>(java.lang.Object[]&nbsp;args)</CODE>
  314. <BR>
  315. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  316. </TR>
  317. <TR BGCOLOR="white" CLASS="TableRowColor">
  318. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  319. <CODE>static&nbsp;java.lang.Object[]</CODE></FONT></TD>
  320. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#wrap(java.lang.Object[], java.lang.Class[])">wrap</A></B>(java.lang.Object[]&nbsp;args,
  321. java.lang.Class[]&nbsp;paramTypes)</CODE>
  322. <BR>
  323. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  324. </TR>
  325. <TR BGCOLOR="white" CLASS="TableRowColor">
  326. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  327. <CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
  328. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html#wrap(java.lang.Object, java.lang.Class)">wrap</A></B>(java.lang.Object&nbsp;value,
  329. java.lang.Class&nbsp;type)</CODE>
  330. <BR>
  331. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Wrap primitive values (as indicated by type param) and nulls in the
  332. Primitive class.</TD>
  333. </TR>
  334. </TABLE>
  335. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  336. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  337. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  338. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  339. </TR>
  340. <TR BGCOLOR="white" CLASS="TableRowColor">
  341. <TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
  342. </TR>
  343. </TABLE>
  344. &nbsp;
  345. <P>
  346. <!-- ============ FIELD DETAIL =========== -->
  347. <A NAME="field_detail"><!-- --></A>
  348. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  349. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  350. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  351. <B>Field Detail</B></FONT></TH>
  352. </TR>
  353. </TABLE>
  354. <A NAME="NULL"><!-- --></A><H3>
  355. NULL</H3>
  356. <PRE>
  357. public static final <A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh">Primitive</A> <B>NULL</B></PRE>
  358. <DL>
  359. <DL>
  360. </DL>
  361. </DL>
  362. <HR>
  363. <A NAME="VOID"><!-- --></A><H3>
  364. VOID</H3>
  365. <PRE>
  366. public static final <A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh">Primitive</A> <B>VOID</B></PRE>
  367. <DL>
  368. <DD>VOID means "no type".
  369. Strictly speaking, this makes no sense here. But for practical
  370. reasons we'll consider the lack of a type to be a special value.
  371. <P>
  372. <DL>
  373. </DL>
  374. </DL>
  375. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  376. <A NAME="constructor_detail"><!-- --></A>
  377. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  378. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  379. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  380. <B>Constructor Detail</B></FONT></TH>
  381. </TR>
  382. </TABLE>
  383. <A NAME="Primitive(java.lang.Object)"><!-- --></A><H3>
  384. Primitive</H3>
  385. <PRE>
  386. public <B>Primitive</B>(java.lang.Object&nbsp;value)</PRE>
  387. <DL>
  388. </DL>
  389. <HR>
  390. <A NAME="Primitive(boolean)"><!-- --></A><H3>
  391. Primitive</H3>
  392. <PRE>
  393. public <B>Primitive</B>(boolean&nbsp;value)</PRE>
  394. <DL>
  395. </DL>
  396. <HR>
  397. <A NAME="Primitive(byte)"><!-- --></A><H3>
  398. Primitive</H3>
  399. <PRE>
  400. public <B>Primitive</B>(byte&nbsp;value)</PRE>
  401. <DL>
  402. </DL>
  403. <HR>
  404. <A NAME="Primitive(short)"><!-- --></A><H3>
  405. Primitive</H3>
  406. <PRE>
  407. public <B>Primitive</B>(short&nbsp;value)</PRE>
  408. <DL>
  409. </DL>
  410. <HR>
  411. <A NAME="Primitive(char)"><!-- --></A><H3>
  412. Primitive</H3>
  413. <PRE>
  414. public <B>Primitive</B>(char&nbsp;value)</PRE>
  415. <DL>
  416. </DL>
  417. <HR>
  418. <A NAME="Primitive(int)"><!-- --></A><H3>
  419. Primitive</H3>
  420. <PRE>
  421. public <B>Primitive</B>(int&nbsp;value)</PRE>
  422. <DL>
  423. </DL>
  424. <HR>
  425. <A NAME="Primitive(long)"><!-- --></A><H3>
  426. Primitive</H3>
  427. <PRE>
  428. public <B>Primitive</B>(long&nbsp;value)</PRE>
  429. <DL>
  430. </DL>
  431. <HR>
  432. <A NAME="Primitive(float)"><!-- --></A><H3>
  433. Primitive</H3>
  434. <PRE>
  435. public <B>Primitive</B>(float&nbsp;value)</PRE>
  436. <DL>
  437. </DL>
  438. <HR>
  439. <A NAME="Primitive(double)"><!-- --></A><H3>
  440. Primitive</H3>
  441. <PRE>
  442. public <B>Primitive</B>(double&nbsp;value)</PRE>
  443. <DL>
  444. </DL>
  445. <!-- ============ METHOD DETAIL ========== -->
  446. <A NAME="method_detail"><!-- --></A>
  447. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  448. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  449. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  450. <B>Method Detail</B></FONT></TH>
  451. </TR>
  452. </TABLE>
  453. <A NAME="getValue()"><!-- --></A><H3>
  454. getValue</H3>
  455. <PRE>
  456. public java.lang.Object <B>getValue</B>()</PRE>
  457. <DL>
  458. <DD>Return the primitive value stored in its java.lang wrapper class
  459. <P>
  460. <DD><DL>
  461. </DL>
  462. </DD>
  463. <DD><DL>
  464. </DL>
  465. </DD>
  466. </DL>
  467. <HR>
  468. <A NAME="toString()"><!-- --></A><H3>
  469. toString</H3>
  470. <PRE>
  471. public java.lang.String <B>toString</B>()</PRE>
  472. <DL>
  473. <DD><DL>
  474. <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
  475. </DD>
  476. <DD><DL>
  477. </DL>
  478. </DD>
  479. </DL>
  480. <HR>
  481. <A NAME="getType()"><!-- --></A><H3>
  482. getType</H3>
  483. <PRE>
  484. public java.lang.Class <B>getType</B>()</PRE>
  485. <DL>
  486. <DD>Get the corresponding Java primitive TYPE class for this Primitive.
  487. <P>
  488. <DD><DL>
  489. </DL>
  490. </DD>
  491. <DD><DL>
  492. <DT><B>Returns:</B><DD>the primitive TYPE class type of the value or Void.TYPE for
  493. Primitive.VOID or null value for type of Primitive.NULL</DL>
  494. </DD>
  495. </DL>
  496. <HR>
  497. <A NAME="binaryOperation(java.lang.Object, java.lang.Object, int)"><!-- --></A><H3>
  498. binaryOperation</H3>
  499. <PRE>
  500. public static java.lang.Object <B>binaryOperation</B>(java.lang.Object&nbsp;obj1,
  501. java.lang.Object&nbsp;obj2,
  502. int&nbsp;kind)
  503. throws <A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></PRE>
  504. <DL>
  505. <DD>Perform a binary operation on two Primitives or wrapper types.
  506. If both original args were Primitives return a Primitive result
  507. else it was mixed (wrapper/primitive) return the wrapper type.
  508. The exception is for boolean operations where we will return the
  509. primitive type either way.
  510. <P>
  511. <DD><DL>
  512. </DL>
  513. </DD>
  514. <DD><DL>
  515. <DT><B>Throws:</B>
  516. <DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></CODE></DL>
  517. </DD>
  518. </DL>
  519. <HR>
  520. <A NAME="unaryOperation(org.gjt.sp.jedit.bsh.Primitive, int)"><!-- --></A><H3>
  521. unaryOperation</H3>
  522. <PRE>
  523. public static <A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh">Primitive</A> <B>unaryOperation</B>(<A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh">Primitive</A>&nbsp;val,
  524. int&nbsp;kind)
  525. throws <A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></PRE>
  526. <DL>
  527. <DD><DL>
  528. </DL>
  529. </DD>
  530. <DD><DL>
  531. <DT><B>Throws:</B>
  532. <DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></CODE></DL>
  533. </DD>
  534. </DL>
  535. <HR>
  536. <A NAME="intValue()"><!-- --></A><H3>
  537. intValue</H3>
  538. <PRE>
  539. public int <B>intValue</B>()
  540. throws <A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></PRE>
  541. <DL>
  542. <DD><DL>
  543. </DL>
  544. </DD>
  545. <DD><DL>
  546. <DT><B>Throws:</B>
  547. <DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></CODE></DL>
  548. </DD>
  549. </DL>
  550. <HR>
  551. <A NAME="booleanValue()"><!-- --></A><H3>
  552. booleanValue</H3>
  553. <PRE>
  554. public boolean <B>booleanValue</B>()
  555. throws <A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></PRE>
  556. <DL>
  557. <DD><DL>
  558. </DL>
  559. </DD>
  560. <DD><DL>
  561. <DT><B>Throws:</B>
  562. <DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></CODE></DL>
  563. </DD>
  564. </DL>
  565. <HR>
  566. <A NAME="isNumber()"><!-- --></A><H3>
  567. isNumber</H3>
  568. <PRE>
  569. public boolean <B>isNumber</B>()</PRE>
  570. <DL>
  571. <DD>Determine if this primitive is a numeric type.
  572. i.e. not boolean, null, or void (but including char)
  573. <P>
  574. <DD><DL>
  575. </DL>
  576. </DD>
  577. <DD><DL>
  578. </DL>
  579. </DD>
  580. </DL>
  581. <HR>
  582. <A NAME="numberValue()"><!-- --></A><H3>
  583. numberValue</H3>
  584. <PRE>
  585. public java.lang.Number <B>numberValue</B>()
  586. throws <A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></PRE>
  587. <DL>
  588. <DD><DL>
  589. </DL>
  590. </DD>
  591. <DD><DL>
  592. <DT><B>Throws:</B>
  593. <DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></CODE></DL>
  594. </DD>
  595. </DL>
  596. <HR>
  597. <A NAME="equals(java.lang.Object)"><!-- --></A><H3>
  598. equals</H3>
  599. <PRE>
  600. public boolean <B>equals</B>(java.lang.Object&nbsp;obj)</PRE>
  601. <DL>
  602. <DD>Primitives compare equal with other Primitives containing an equal
  603. wrapped value.
  604. <P>
  605. <DD><DL>
  606. <DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
  607. </DD>
  608. <DD><DL>
  609. </DL>
  610. </DD>
  611. </DL>
  612. <HR>
  613. <A NAME="hashCode()"><!-- --></A><H3>
  614. hashCode</H3>
  615. <PRE>
  616. public int <B>hashCode</B>()</PRE>
  617. <DL>
  618. <DD>The hash of the Primitive is tied to the hash of the wrapped value but
  619. shifted so that they are not the same.
  620. <P>
  621. <DD><DL>
  622. <DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL>
  623. </DD>
  624. <DD><DL>
  625. </DL>
  626. </DD>
  627. </DL>
  628. <HR>
  629. <A NAME="unwrap(java.lang.Object)"><!-- --></A><H3>
  630. unwrap</H3>
  631. <PRE>
  632. public static java.lang.Object <B>unwrap</B>(java.lang.Object&nbsp;obj)</PRE>
  633. <DL>
  634. <DD>Unwrap primitive values and map voids to nulls.
  635. Non Primitive types remain unchanged.
  636. <P>
  637. <DD><DL>
  638. </DL>
  639. </DD>
  640. <DD><DL>
  641. <DT><B>Parameters:</B><DD><CODE>obj</CODE> - object type which may be bsh.Primitive
  642. <DT><B>Returns:</B><DD>corresponding "normal" Java type, "unwrapping"
  643. any bsh.Primitive types to their wrapper types.</DL>
  644. </DD>
  645. </DL>
  646. <HR>
  647. <A NAME="unwrap(java.lang.Object[])"><!-- --></A><H3>
  648. unwrap</H3>
  649. <PRE>
  650. public static java.lang.Object[] <B>unwrap</B>(java.lang.Object[]&nbsp;args)</PRE>
  651. <DL>
  652. <DD><DL>
  653. </DL>
  654. </DD>
  655. <DD><DL>
  656. </DL>
  657. </DD>
  658. </DL>
  659. <HR>
  660. <A NAME="wrap(java.lang.Object[], java.lang.Class[])"><!-- --></A><H3>
  661. wrap</H3>
  662. <PRE>
  663. public static java.lang.Object[] <B>wrap</B>(java.lang.Object[]&nbsp;args,
  664. java.lang.Class[]&nbsp;paramTypes)</PRE>
  665. <DL>
  666. <DD><DL>
  667. </DL>
  668. </DD>
  669. <DD><DL>
  670. </DL>
  671. </DD>
  672. </DL>
  673. <HR>
  674. <A NAME="wrap(java.lang.Object, java.lang.Class)"><!-- --></A><H3>
  675. wrap</H3>
  676. <PRE>
  677. public static java.lang.Object <B>wrap</B>(java.lang.Object&nbsp;value,
  678. java.lang.Class&nbsp;type)</PRE>
  679. <DL>
  680. <DD>Wrap primitive values (as indicated by type param) and nulls in the
  681. Primitive class. Values not primitive or null are left unchanged.
  682. Primitive values are represented by their wrapped values in param value.
  683. <p/>
  684. The value null is mapped to Primitive.NULL.
  685. Any value specified with type Void.TYPE is mapped to Primitive.VOID.
  686. <P>
  687. <DD><DL>
  688. </DL>
  689. </DD>
  690. <DD><DL>
  691. </DL>
  692. </DD>
  693. </DL>
  694. <HR>
  695. <A NAME="getDefaultValue(java.lang.Class)"><!-- --></A><H3>
  696. getDefaultValue</H3>
  697. <PRE>
  698. public static <A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh">Primitive</A> <B>getDefaultValue</B>(java.lang.Class&nbsp;type)</PRE>
  699. <DL>
  700. <DD>Get the appropriate default value per JLS 4.5.4
  701. <P>
  702. <DD><DL>
  703. </DL>
  704. </DD>
  705. <DD><DL>
  706. </DL>
  707. </DD>
  708. </DL>
  709. <HR>
  710. <A NAME="boxType(java.lang.Class)"><!-- --></A><H3>
  711. boxType</H3>
  712. <PRE>
  713. public static java.lang.Class <B>boxType</B>(java.lang.Class&nbsp;primitiveType)</PRE>
  714. <DL>
  715. <DD>Get the corresponding java.lang wrapper class for the primitive TYPE
  716. class.
  717. e.g. Integer.TYPE -> Integer.class
  718. <P>
  719. <DD><DL>
  720. </DL>
  721. </DD>
  722. <DD><DL>
  723. </DL>
  724. </DD>
  725. </DL>
  726. <HR>
  727. <A NAME="unboxType(java.lang.Class)"><!-- --></A><H3>
  728. unboxType</H3>
  729. <PRE>
  730. public static java.lang.Class <B>unboxType</B>(java.lang.Class&nbsp;wrapperType)</PRE>
  731. <DL>
  732. <DD>Get the corresponding primitive TYPE class for the java.lang wrapper
  733. class type.
  734. e.g. Integer.class -> Integer.TYPE
  735. <P>
  736. <DD><DL>
  737. </DL>
  738. </DD>
  739. <DD><DL>
  740. </DL>
  741. </DD>
  742. </DL>
  743. <HR>
  744. <A NAME="castToType(java.lang.Class, int)"><!-- --></A><H3>
  745. castToType</H3>
  746. <PRE>
  747. public <A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh">Primitive</A> <B>castToType</B>(java.lang.Class&nbsp;toType,
  748. int&nbsp;operation)
  749. throws <A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></PRE>
  750. <DL>
  751. <DD>Cast this bsh.Primitive value to a new bsh.Primitive value
  752. This is usually a numeric type cast. Other cases include:
  753. A boolean can be cast to boolen
  754. null can be cast to any object type and remains null
  755. Attempting to cast a void causes an exception
  756. <P>
  757. <DD><DL>
  758. </DL>
  759. </DD>
  760. <DD><DL>
  761. <DT><B>Parameters:</B><DD><CODE>toType</CODE> - is the java object or primitive TYPE class
  762. <DT><B>Throws:</B>
  763. <DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></CODE></DL>
  764. </DD>
  765. </DL>
  766. <HR>
  767. <A NAME="isWrapperType(java.lang.Class)"><!-- --></A><H3>
  768. isWrapperType</H3>
  769. <PRE>
  770. public static boolean <B>isWrapperType</B>(java.lang.Class&nbsp;type)</PRE>
  771. <DL>
  772. <DD><DL>
  773. </DL>
  774. </DD>
  775. <DD><DL>
  776. </DL>
  777. </DD>
  778. </DL>
  779. <!-- ========= END OF CLASS DATA ========= -->
  780. <HR>
  781. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  782. <A NAME="navbar_bottom"><!-- --></A>
  783. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  784. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  785. <TR>
  786. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  787. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  788. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  789. <TR ALIGN="center" VALIGN="top">
  790. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  791. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  792. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  793. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Primitive.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  794. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  795. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  796. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  797. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  798. </TR>
  799. </TABLE>
  800. </TD>
  801. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  802. </EM>
  803. </TD>
  804. </TR>
  805. <TR>
  806. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  807. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/ParserTreeConstants.html" title="interface in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>&nbsp;
  808. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/ReflectManager.html" title="class in org.gjt.sp.jedit.bsh"><B>NEXT CLASS</B></A></FONT></TD>
  809. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  810. <A HREF="../../../../../index.html?org/gjt/sp/jedit/bsh/Primitive.html" target="_top"><B>FRAMES</B></A> &nbsp;
  811. &nbsp;<A HREF="Primitive.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  812. &nbsp;
  813. <NOSCRIPT>
  814. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  815. </NOSCRIPT>
  816. </FONT></TD>
  817. </TR>
  818. <TR>
  819. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  820. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  821. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  822. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  823. </TR>
  824. </TABLE>
  825. <A NAME="skip-navbar_bottom"></A>
  826. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  827. <HR>
  828. </BODY>
  829. </HTML>