rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
contentPane.add(blinkPanel);
public void initPanel() throws Exception { setLayout(new BorderLayout()); contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); add(contentPane,BorderLayout.NORTH); // define cursor size panel JPanel crp = new JPanel(); crp.setBorder(Borde...
if (!evt.isShiftDown())
if (evt.getModifiers() == 0)
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j...
else
else if (evt.getModifiers() == InputEvent.SHIFT_MASK)
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j...
int target; if (lead == BasicListUI.this.list.getFirstVisibleIndex()) { target = Math.max (0, lead - (BasicListUI.this.list.getLastVisibleIndex() - BasicListUI.this.list.getFirstVisibleIndex() + 1)); } else { target = BasicListUI.this.list.getFirstVisibleIndex(); } if (evt.getModifiers() == 0) BasicListUI.this.list.set...
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j...
int target; if (lead == BasicListUI.this.list.getLastVisibleIndex()) { target = Math.min (max, lead + (BasicListUI.this.list.getLastVisibleIndex() - BasicListUI.this.list.getFirstVisibleIndex() + 1)); } else { target = BasicListUI.this.list.getLastVisibleIndex(); } if (evt.getModifiers() == 0) BasicListUI.this.list.set...
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j...
&& evt.isControlDown())
&& (evt.getModifiers() == InputEvent.CTRL_MASK))
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j...
== KeyEvent.VK_SLASH) && evt.isControlDown())
== KeyEvent.VK_SLASH) && (evt.getModifiers() == InputEvent.CTRL_MASK))
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j...
else if (evt.getKeyCode() == KeyEvent.VK_SPACE && evt.isControlDown())
else if (evt.getKeyCode() == KeyEvent.VK_SPACE && (evt.getModifiers() == InputEvent.CTRL_MASK))
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j...
BasicListUI.this.list.ensureIndexIsVisible (BasicListUI.this.list.getLeadSelectionIndex());
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j...
if (event.isControlDown()) { if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel.SINGLE_SELECTION) BasicListUI.this.list.setSelectedIndex(index); else if (BasicListUI.this.list.isSelectedIndex(index)) BasicListUI.this.list.removeSelectionInterval(index,index); else BasicListUI.this.list.addSelectionInter...
if (event.isShiftDown())
public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; if (event.isControlDown()) { if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel...
BasicListUI.this.list.ensureIndexIsVisible (BasicListUI.this.list.getLeadSelectionIndex());
public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; if (event.isControlDown()) { if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel...
size.width = columns * getColumnWidth();
{ Insets i = getInsets(); size.width = columns * getColumnWidth() + i.left + i.right; }
public Dimension getPreferredSize() { Dimension size = super.getPreferredSize(); if (columns != 0) size.width = columns * getColumnWidth(); return size; }
if (clipboard != null) return clipboard; else {
private static Clipboard getClipboard(JComponent component) { // Avoid throwing exception if the system clipboard access failed // in the past. if (clipboard != null) return clipboard; else { try { SecurityManager sm = System.getSecurityManager(); if (sm...
}
private static Clipboard getClipboard(JComponent component) { // Avoid throwing exception if the system clipboard access failed // in the past. if (clipboard != null) return clipboard; else { try { SecurityManager sm = System.getSecurityManager(); if (sm...
InputStream stream) { super(stream); }
InputStream stream) { super(stream); int max = 0; try { max = stream.available(); } catch ( IOException ioe ) { } monitor = new ProgressMonitor( component, message, null, 0, max ); }
public ProgressMonitorInputStream(Component component, Object message, InputStream stream) { super(stream); // TODO } // ProgressMonitorInputStream()
public void close() throws IOException { }
public void close() throws IOException { super.close(); monitor.close(); }
public void close() throws IOException { // TODO } // close()
public ProgressMonitor getProgressMonitor() { return null; }
public ProgressMonitor getProgressMonitor() { return monitor; }
public ProgressMonitor getProgressMonitor() { return null; // TODO } // getProgressMonitor()
public int read() throws IOException { return 0; }
public int read() throws IOException { int t = super.read(); monitor.setProgress(++read); checkMonitorCanceled(); return t; }
public int read() throws IOException { return 0; // TODO } // read()
public synchronized void reset() throws IOException { }
public void reset() throws IOException { super.reset(); checkMonitorCanceled(); }
public synchronized void reset() throws IOException { // TODO } // reset()
public long skip(long length) throws IOException { return 0; }
public long skip(long length) throws IOException { long t = super.skip(length); assert ( (long) read + t <= (long) Integer.MAX_VALUE ); read += (int) t; monitor.setProgress(read); checkMonitorCanceled(); return t; }
public long skip(long length) throws IOException { return 0; // TODO } // skip()
CurrentArray.addNote(newnote);
getCurrentArray().addNote(newnote); } else if( parentNodeName.equals(XDFNodeName.STRUCTURE) || parentNodeName.equals(XDFNodeName.ROOT) ) { getCurrentStructure().addNote(newnote);
public Object action (SaxDocumentHandler handler, Attributes attrs) throws SAXException { String parentNodeName = getParentNodeName(); // create new object appropriately Note newnote = new Note(); newnote.setAttributes(attrs); // set XML attributes from pass...
bad.minor = Minor.Any;
public static ObjectAlreadyActive extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (ObjectAlreadyActive) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("ObjectAlreadyActive e...
if (config.getStringProperty("cursorBlink").equals("Yes")) { blinker = new javax.swing.Timer(500,this); blinker.start(); }
public void loadProps() { loadColors(); if (config.isPropertyExists("colSeparator")) { if (getStringProperty("colSeparator").equals("Line")) colSepLine = 0; if (getStringProperty("colSeparator").equals("ShortLine")) colSepLine = 1; if (getStringProperty("colSep...
if (pn.equals("cursorBlink")) { System.out.println(getStringProperty("cursorBlink")); if (pce.getNewValue().equals("Yes")) { if (blinker == null) { blinker = new javax.swing.Timer(500,this); blinker.start(); } } else { if (blinker != null) { blinker.stop(); blinker = null; } } }
public void propertyChange(PropertyChangeEvent pce) { String pn = pce.getPropertyName(); boolean resetAttr = false; if (pn.equals("colorBg")) { colorBg = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorBlue")) { colorBlue = (Color)pce.getNewValue(); ...
this.button = button;
public SwingButtonPeer(Button button) { SwingToolkit.add(button, this); SwingToolkit.copyAwtProperties(button, this); setText(button.getLabel()); addActionListener(new ActionListenerDelegate(button)); addMouseListener(new MouseListenerDelegate(button)); addMouseMotionListener(new MouseMotionListenerDelegate(butt...
setWasIcon(frame, true);
setWasIcon(frame, Boolean.TRUE);
public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { ...
protected void setWasIcon(JInternalFrame frame, boolean value)
protected void setWasIcon(JInternalFrame frame, Boolean value)
protected void setWasIcon(JInternalFrame frame, boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); } // setWasIcon()
frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); }
frame.setWasIcon(value.booleanValue(), WAS_ICON_ONCE_PROPERTY); }
protected void setWasIcon(JInternalFrame frame, boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); } // setWasIcon()
this(null, null, e);
this(null, e);
public PluginDescriptorModel(XMLElement e) throws PluginException { this(null, null, e); }
return new PluginClassLoader(PluginDescriptorModel.this, jarFile, preLoaders);
return new PluginClassLoader(registry, PluginDescriptorModel.this, jarFile, preLoaders);
public ClassLoader getPluginClassLoader() { if (classLoader == null) { if (system) { classLoader = ClassLoader.getSystemClassLoader(); } else { if (jarFile == null) { throw new RuntimeException("Cannot create classloader without a jarfile"); } final int reqMax = requires.length; final PluginCla...
return new PluginClassLoader(PluginDescriptorModel.this, jarFile, preLoaders);
return new PluginClassLoader(registry, PluginDescriptorModel.this, jarFile, preLoaders);
public Object run() { return new PluginClassLoader(PluginDescriptorModel.this, jarFile, preLoaders); }
public final void resolve() throws PluginException {
public final void resolve(PluginRegistryModel registry) throws PluginException { if ((this.registry != null) && (this.registry != registry)) { throw new SecurityException("Cannot overwrite the registry"); }
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ...
extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve();
extensions[i].resolve(registry);
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ...
requires[i].resolve();
requires[i].resolve(registry);
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ...
runtime.resolve();
runtime.resolve(registry);
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ...
final void startPlugin() throws PluginException {
final void startPlugin(final PluginRegistryModel registry) throws PluginException {
final void startPlugin() throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; //BootLog.info("Resolve on plugin " + getId()); try { AccessController.doPrivileged(new Privi...
resolve();
resolve(registry);
final void startPlugin() throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; //BootLog.info("Resolve on plugin " + getId()); try { AccessController.doPrivileged(new Privi...
reqDescr.startPlugin();
reqDescr.startPlugin(registry);
final void startPlugin() throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; //BootLog.info("Resolve on plugin " + getId()); try { AccessController.doPrivileged(new Privi...
resolve();
resolve(registry);
public Object run() throws PluginException { resolve(); final int reqMax = requires.length; for (int i = 0; i < reqMax; i++) { final String reqId = requires[i].getPluginId(); //BootLog.info("Start dependency " + reqId); final Plugi...
reqDescr.startPlugin();
reqDescr.startPlugin(registry);
public Object run() throws PluginException { resolve(); final int reqMax = requires.length; for (int i = 0; i < reqMax; i++) { final String reqId = requires[i].getPluginId(); //BootLog.info("Start dependency " + reqId); final Plugi...
protected void unresolve() throws PluginException { if (resolved) { if (runtime != null) { runtime.unresolve(); } for (int i = 0; i < requires.length; i++) { requires[i].unresolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].unresolve(); } for (int i = 0; i < extensions.length; i++) { exte...
protected void unresolve(PluginRegistryModel registry) throws PluginException { if (runtime != null) { runtime.unresolve(registry); } for (int i = 0; i < requires.length; i++) { requires[i].unresolve(registry); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].unresolve(registry); } for (int i = 0...
protected void unresolve() throws PluginException { if (resolved) { if (runtime != null) { runtime.unresolve(); } for (int i = 0; i < requires.length; i++) { requires[i].unresolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].unresolve(); } for (int i = 0; i < exten...
public void startSystemPlugins() throws PluginException {
public void startSystemPlugins(List descriptors) throws PluginException {
public void startSystemPlugins() throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescriptors(); //...
((PluginRegistryModel) registry).resolveDescriptors(descriptors);
public void startSystemPlugins() throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescriptors(); //...
case LGDT_ISN: emmitLGDT(); break; case LIDT_ISN: emmitLIDT(); break;
public boolean emmit(String mnemonic, List operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case ADC_ISN: ...
case AC_ADDR: stream.writeADD(operandSize, getAddress(0).disp, getInt(1)); break;
private final void emmitADD() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: stream.writeADD(getReg(0), getReg(1)); break; case RC_ADDR: stream.writeADD(getReg(0), getInt(1)); break; case RE_...
case AC_ADDR: stream.writeAND(operandSize, getAddress(0).disp, getInt(1)); break;
private final void emmitAND() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: stream.writeAND(getReg(0), getReg(1)); break; case RC_ADDR: stream.writeAND(getReg(0), getInt(1)); break; case RE_...
} else if (o1 instanceof Address) { Address ind = (Address) o1; if (ind.reg != null && ind.sreg != null) { throw new IllegalArgumentException("Scaled is not supported for call "); } else if (ind.reg != null && ind.sreg == null) { stream.writeCALL(getRegister(ind.getImg()), ind.disp); } else if (ind.reg == null && ind.s...
private final void emmitCALL() { Object o1 = operands.get(0); if (o1 instanceof Register) { stream.writeCALL(getRegister(((Register) o1).name)); } else if (o1 instanceof Identifier) { String id = ((Identifier) o1).name; Label lab = (Label) labels.get(id); ...
case A_ADDR: stream.writeINC(operandSize, getAddress(0).disp); break; case S_ADDR: ind = getAddress(0); stream.writeINC(operandSize, getRegister(ind.getImg()), getRegister(ind.sreg), ind.scale, ind.disp); break;
private final void emmitINC() { int addr = getAddressingMode(1); switch (addr) { case R_ADDR: stream.writeINC(getReg(0)); break; case E_ADDR: Address ind = getAddress(0); stream.writeINC(operandSize, getRegister(ind.getI...
case RS_ADDR: ind = getAddress(1); stream.writeLEA(getReg(0), getRegister(ind.getImg()), getRegister(ind.sreg), ind.scale, ind.disp); break; case RZ_ADDR: ind = getAddress(1); stream.writeLEA(getReg(0), getRegister(ind.sreg), ind.scale, ind.disp); break;
private final void emmitLEA() { int addr = getAddressingMode(2); switch (addr) { case RE_ADDR: Address ind = getAddress(1); stream.writeLEA(getReg(0), getRegister(ind.getImg()), ind.disp); break; default: reportAddressin...
stream.writeMOV(operandSize, (GPR) r1, (GPR) r2);
int s1 = r1.getSize(); int s2 = r2.getSize(); if(s1 != s2){ throw new IllegalArgumentException("Incompatible register pair: " + r1 + "," + r2); } stream.writeMOV(s1, (GPR) r1, (GPR) r2);
private final void emmitMOV() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: X86Register r1 = X86Register.getRegister(((Register) args[0]).name); X86Register r2 = X86Register.getRegister(((Register) args[1]).name); if (r1 instan...
stream.writeMOV(operandSize, getReg(0), getRegister(ind.getImg()), ind.disp);
stream.writeMOV(r.getSize(), r, getRegister(ind.getImg()), ind.disp); break; case RA_ADDR: stream.writeMOV(getReg(0), getAddress(1).disp);
private final void emmitMOV() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: X86Register r1 = X86Register.getRegister(((Register) args[0]).name); X86Register r2 = X86Register.getRegister(((Register) args[1]).name); if (r1 instan...
case AR_ADDR: stream.writeMOV(getAddress(0).disp, getReg(1)); break; case AC_ADDR: stream.writeMOV_Const(operandSize, getAddress(0).disp, getInt(1)); break; case SR_ADDR: ind = getAddress(0); stream.writeMOV(operandSize, getRegister(ind.getImg()), getRegister(ind.sreg), ind.scale, ind.disp, getReg(1)); break;
private final void emmitMOV() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: X86Register r1 = X86Register.getRegister(((Register) args[0]).name); X86Register r2 = X86Register.getRegister(((Register) args[1]).name); if (r1 instan...
case AC_ADDR: stream.writeOR(operandSize, getAddress(0).disp, getInt(1)); break;
private final void emmitOR() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: stream.writeOR(getReg(0), getReg(1)); break; case RC_ADDR: stream.writeOR(getReg(0), getInt(1)); break; case RE_ADD...
case AR_ADDR: stream.writeSUB(getAddress(0).disp, getReg(1)); break;
private final void emmitSUB() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: stream.writeSUB(getReg(0), getReg(1)); break; case RC_ADDR: stream.writeSUB(getReg(0), getInt(1)); break; case RE_...
case AC_ADDR: stream.writeTEST(operandSize, getAddress(0).disp, getInt(1)); break;
private final void emmitTEST() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: stream.writeTEST(getReg(0), getReg(1)); break; case RC_ADDR: stream.writeTEST(getReg(0), getInt(1)); break; case ...
Address ind = getAddress(0);
ind = getAddress(0);
private final void emmitXCHG() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: stream.writeXCHG(getReg(0), getReg(1)); break; case ER_ADDR: Address ind = getAddress(0); stream.writeXCHG(getRegister(ind.g...
break; case AR_ADDR: stream.writeXCHG(getAddress(0).disp, getReg(1));
private final void emmitXCHG() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: stream.writeXCHG(getReg(0), getReg(1)); break; case ER_ADDR: Address ind = getAddress(0); stream.writeXCHG(getRegister(ind.g...
if (ind.reg != null && ind.sreg != null) {
if (ind.segment){ ret |= SEG_ARG << DISP * i; } else if (ind.reg != null && ind.sreg != null) {
private int getAddressingMode(int maxArgs) { int ret = N_ADDR; if (maxArgs > 3) { throw new Error("Invalid number of arguments: " + maxArgs); } for (int i = 0; i < maxArgs; i++) { try { if (operands == null) break; Object o = operands.g...
public Error(String s)
public Error()
public Error(String s) { super(s); }
super(s);
public Error(String s) { super(s); }
public static ActionListener add(ActionListener a, ActionListener b)
public static ComponentListener add(ComponentListener a, ComponentListener b)
public static ActionListener add(ActionListener a, ActionListener b) { return (ActionListener) addInternal(a, b); }
return (ActionListener) addInternal(a, b);
return (ComponentListener) addInternal(a, b);
public static ActionListener add(ActionListener a, ActionListener b) { return (ActionListener) addInternal(a, b); }
public static ActionListener remove(ActionListener l, ActionListener oldl)
protected EventListener remove(EventListener oldl)
public static ActionListener remove(ActionListener l, ActionListener oldl) { return (ActionListener) removeInternal(l, oldl); }
return (ActionListener) removeInternal(l, oldl);
if (a == oldl) return b; if (b == oldl) return a; if (a instanceof AWTEventMulticaster) { EventListener newa = ((AWTEventMulticaster) a).remove(oldl); if (newa != a) return new AWTEventMulticaster(newa, b); } if (b instanceof AWTEventMulticaster) { EventListener newb = ((AWTEventMulticaster) b).remove(oldl); if (newb ...
public static ActionListener remove(ActionListener l, ActionListener oldl) { return (ActionListener) removeInternal(l, oldl); }
public abstract byte get ();
public ByteBuffer get (byte[] dst, int offset, int length) { checkArraySize(dst.length, offset, length); checkForUnderflow(length); for (int i = offset; i < offset + length; i++) { dst [i] = get (); } return this; }
public abstract byte get ();
public abstract int get (int index);
public IntBuffer get (int[] dst, int offset, int length) { checkArraySize(dst.length, offset, length); checkForUnderflow(length); for (int i = offset; i < offset + length; i++) { dst [i] = get (); } return this; }
public abstract int get (int index);
public abstract char get (int index);
public CharBuffer get (char[] dst, int offset, int length) { checkArraySize(dst.length, offset, length); checkForUnderflow(length); for (int i = offset; i < offset + length; i++) { dst [i] = get (); } return this; }
public abstract char get (int index);
public abstract short get (int index);
public ShortBuffer get (short[] dst, int offset, int length) { checkArraySize(dst.length, offset, length); checkForUnderflow(length); for (int i = offset; i < offset + length; i++) { dst [i] = get (); } return this; }
public abstract short get (int index);
public static NumberFormat getInstance (Locale loc)
public static final NumberFormat getInstance ()
public static NumberFormat getInstance (Locale loc) { // For now always return a number instance. return getNumberInstance (loc); }
return getNumberInstance (loc);
return getInstance (Locale.getDefault());
public static NumberFormat getInstance (Locale loc) { // For now always return a number instance. return getNumberInstance (loc); }
public static NumberFormat getCurrencyInstance (Locale loc)
public static final NumberFormat getCurrencyInstance ()
public static NumberFormat getCurrencyInstance (Locale loc) { return computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)"); }
return computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)");
return getCurrencyInstance (Locale.getDefault());
public static NumberFormat getCurrencyInstance (Locale loc) { return computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)"); }
public static NumberFormat getPercentInstance (Locale loc)
public static final NumberFormat getPercentInstance ()
public static NumberFormat getPercentInstance (Locale loc) { return computeInstance (loc, "percentFormat", "#,##0%"); }
return computeInstance (loc, "percentFormat", "#,##0%");
return getPercentInstance (Locale.getDefault());
public static NumberFormat getPercentInstance (Locale loc) { return computeInstance (loc, "percentFormat", "#,##0%"); }
public static NumberFormat getNumberInstance (Locale loc)
public static final NumberFormat getNumberInstance ()
public static NumberFormat getNumberInstance (Locale loc) { return computeInstance (loc, "numberFormat", "#,##0.###"); }
return computeInstance (loc, "numberFormat", "#,##0.###");
return getNumberInstance (Locale.getDefault());
public static NumberFormat getNumberInstance (Locale loc) { return computeInstance (loc, "numberFormat", "#,##0.###"); }
public static final DateFormat getDateInstance (int style, Locale loc)
public static final DateFormat getDateInstance ()
public static final DateFormat getDateInstance (int style, Locale loc) { return computeInstance (style, loc, true, false); }
return computeInstance (style, loc, true, false);
return getDateInstance (DEFAULT, Locale.getDefault());
public static final DateFormat getDateInstance (int style, Locale loc) { return computeInstance (style, loc, true, false); }
tokens = new Vector();
tokens = new ArrayList();
public void applyPattern(String pattern) { tokens = new Vector(); compileFormat(pattern); this.pattern = pattern; }
public FieldPosition (int field_id)
public FieldPosition (Format.Field field)
public FieldPosition (int field_id) { this.field_id = field_id; }
this.field_id = field_id;
this(field, -1);
public FieldPosition (int field_id) { this.field_id = field_id; }
public abstract StringBuffer format (Object obj, StringBuffer sb, FieldPosition pos) throws IllegalArgumentException;
public final String format(Object obj) throws IllegalArgumentException { StringBuffer sb = new StringBuffer (); format (obj, sb, new FieldPosition (0)); return sb.toString (); }
public abstract StringBuffer format (Object obj, StringBuffer sb, FieldPosition pos) throws IllegalArgumentException;
public synchronized StringBuffer append(String str)
public StringBuffer append(Object obj)
public synchronized StringBuffer append(String str) { if (str == null) str = "null"; int len = str.count; ensureCapacity_unsynchronized(count + len); str.getChars(0, len, value, count); count += len; return this; }
if (str == null) str = "null"; int len = str.count; ensureCapacity_unsynchronized(count + len); str.getChars(0, len, value, count); count += len; return this;
return append(obj == null ? "null" : obj.toString());
public synchronized StringBuffer append(String str) { if (str == null) str = "null"; int len = str.count; ensureCapacity_unsynchronized(count + len); str.getChars(0, len, value, count); count += len; return this; }
public void append (String text)
public void append (AttributedCharacterIterator iterator)
public void append (String text) { append (text, null); }
append (text, null);
char c = iterator.first(); Vector more_ranges = new Vector(); Vector more_attributes = new Vector(); do { formattedString = formattedString + String.valueOf (c); more_attributes.add (iterator.getAttributes()); more_ranges.add (new Integer (formattedString.length())); c = iterator.next(); } while (c != DONE); HashMa...
public void append (String text) { append (text, null); }
public abstract Object parseObject (String str, ParsePosition pos);
public Object parseObject (String str) throws ParseException { ParsePosition pos = new ParsePosition(0); Object result = parseObject (str, pos); if (result == null) { int index = pos.getErrorIndex(); if (index < 0) index = pos.getIndex(); throw new ParseException("parseObject failed", index); } return result; }
public abstract Object parseObject (String str, ParsePosition pos);
public abstract int getBeginIndex ();
int getBeginIndex();
public abstract int getBeginIndex ();
public abstract int getEndIndex ();
int getEndIndex();
public abstract int getEndIndex ();
getAllAttributeKeys();
Set getAllAttributeKeys();
getAllAttributeKeys();
public abstract char setIndex (int index) throws IllegalArgumentException;
char setIndex (int index) throws IllegalArgumentException;
public abstract char setIndex (int index) throws IllegalArgumentException;
public ArrayList()
public ArrayList(int capacity)
public ArrayList() { this(DEFAULT_CAPACITY); }
this(DEFAULT_CAPACITY);
if (capacity < 0) throw new IllegalArgumentException(); data = (E[]) new Object[capacity];
public ArrayList() { this(DEFAULT_CAPACITY); }
getRunLimit(AttributedCharacterIterator.Attribute attrib);
int getRunLimit();
getRunLimit(AttributedCharacterIterator.Attribute attrib);
getRunStart(AttributedCharacterIterator.Attribute attrib);
int getRunStart();
getRunStart(AttributedCharacterIterator.Attribute attrib);
public abstract int getIndex ();
int getIndex();
public abstract int getIndex ();
getAttribute(AttributedCharacterIterator.Attribute attrib);
Object getAttribute (AttributedCharacterIterator.Attribute attrib);
getAttribute(AttributedCharacterIterator.Attribute attrib);
public abstract char next ();
char next();
public abstract char next ();
public <T> T[] toArray(T[] a)
public Object[] toArray()
public <T> T[] toArray(T[] a) { if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; System.arraycopy(data, 0, a, 0, size); return a; }
if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; System.arraycopy(data, 0, a, 0, size); return a;
E[] array = (E[]) new Object[size]; System.arraycopy(data, 0, array, 0, size); return array;
public <T> T[] toArray(T[] a) { if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; System.arraycopy(data, 0, a, 0, size); return a; }