PageRenderTime 183ms CodeModel.GetById 41ms app.highlight 66ms RepoModel.GetById 34ms app.codeStats 1ms

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