rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if (Configuration.DEBUG)
public byte[] encodePublicKey(PublicKey key) { log.entering(this.getClass().getName(), "encodePublicKey()", key); if (! (key instanceof GnuRSAPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, RSA_ALG_OID); GnuRSAPublicKey rsaKey = (GnuRSAPu...
return null;
int n = sources.size(); for (int i=0; i<n; i+=1) { Variable src = (Variable) sources.get(i); Operand op = src.simplify(); if (op instanceof StackVariable || op instanceof LocalVariable) { sources.set(i, op); } else { src.getAssignQuad().setDeadCode(false); } } return this;
public Operand simplify() { return null; }
throw new IllegalArgumentException("Undefined location");
throw new IllegalArgumentException("Undefined location: " + toString());
public int getAddressingMode() { if (location instanceof StackLocation) { return Operand.MODE_STACK; } else if (location instanceof RegisterLocation) { return Operand.MODE_REGISTER; } else { throw new IllegalArgumentException("Undefined location"); } }
public UnrecoverableKeyException(String msg)
public UnrecoverableKeyException()
public UnrecoverableKeyException(String msg) { super(msg); }
super(msg);
public UnrecoverableKeyException(String msg) { super(msg); }
return out;
char[] resized = new char[out.remaining()]; out.get(resized); return CharBuffer.wrap(resized);
public final CharBuffer decode (ByteBuffer in) throws CharacterCodingException { // XXX: Sun's Javadoc seems to contradict itself saying an // IllegalStateException is thrown "if a decoding operation is already // in progress" and also that "it resets this Decoder". // Should we check to see that the ...
public AbstractTest()
public AbstractTest(Class configClazz)
public AbstractTest() { super(); ConfigManager.initLog4j(); }
this.configClazz = configClazz;
public AbstractTest() { super(); ConfigManager.initLog4j(); }
testConfig = ConfigManager.getInstance().getConfig(getClass(), getName());
testConfig = ConfigManager.getInstance().getConfig(configClazz, getClass(), getName());
final protected TestConfig getTestConfig() { if(testConfig == null) { testConfig = ConfigManager.getInstance().getConfig(getClass(), getName()); } return testConfig; }
Category.getRoot().setLevel(Level.FATAL);
public static void initLog4j() { if(!log4jInitialized && OsType.OTHER_OS.isCurrentOS()) { // configure Log4j only if outside of JNode // (because JNode has its own config for Log4j) try { // name must be of...
public TestConfig getConfig(Class clazz, String testName)
public TestConfig getConfig(Class configClazz, Class clazz, String testName)
public TestConfig getConfig(Class clazz, String testName) { TestKey key = new TestKey(clazz, testName); Iterator it = (Iterator) iterators.get(key); if(it == null) { it = configs.iterator(); iterators.put(key, it); } TestConfig cfg = (TestCo...
it = configs.iterator();
List cfgs = (List) configs.get(configClazz); it = cfgs.iterator();
public TestConfig getConfig(Class clazz, String testName) { TestKey key = new TestKey(clazz, testName); Iterator it = (Iterator) iterators.get(key); if(it == null) { it = configs.iterator(); iterators.put(key, it); } TestConfig cfg = (TestCo...
log.info(key+" got config "+cfg);
public TestConfig getConfig(Class clazz, String testName) { TestKey key = new TestKey(clazz, testName); Iterator it = (Iterator) iterators.get(key); if(it == null) { it = configs.iterator(); iterators.put(key, it); } TestConfig cfg = (TestCo...
public Book() { }
Book() { ; }
public Book() { }
public void append(Printable printable, PageFormat page_format) {
append(Printable printable, PageFormat page_format) {
public void append(Printable printable, PageFormat page_format) { append(printable, page_format, 1); }
public int getNumberOfPages() { return (printables.size()); }
getNumberOfPages() { return(printables.size()); }
public int getNumberOfPages() { return (printables.size()); }
public PageFormat getPageFormat(int page_number) { return ((PageFormat) page_formats.elementAt(page_number)); }
getPageFormat(int page_number) { return((PageFormat)page_formats.elementAt(page_number)); }
public PageFormat getPageFormat(int page_number) { return ((PageFormat) page_formats.elementAt(page_number)); }
public Printable getPrintable(int page_number) { return ((Printable) printables.elementAt(page_number)); }
getPrintable(int page_number) { return((Printable)printables.elementAt(page_number)); }
public Printable getPrintable(int page_number) { return ((Printable) printables.elementAt(page_number)); }
public void setPage(int page_num, Printable printable, PageFormat page_format) {
setPage(int page_num, Printable printable, PageFormat page_format) {
public void setPage(int page_num, Printable printable, PageFormat page_format) { printables.setElementAt(printable, page_num); page_formats.setElementAt(page_format, page_num); }
TestRunner.run(clazz); }
JNodeTestRunner.run(clazz); }
public void execute( ParsedArguments cmdLine, InputStream in, PrintStream out, PrintStream err) throws Exception { Class clazz = ARG_CLASS.getClass(cmdLine); TestRunner.run(clazz); }
Register refReg, Register indexReg, Register valueReg) { writePUSH(refReg); writePUSH(indexReg); writePUSH(valueReg); invokeJavaMethod(context.getArrayStoreWriteBarrier(), context);
Register refReg, Register indexReg, Register valueReg, Register scratchReg) { final VmWriteBarrier wb = context.getWriteBarrier(); if (wb != null) { os.writeMOV_Const(scratchReg, wb); writePUSH(scratchReg); writePUSH(refReg); writePUSH(indexReg); writePUSH(valueReg); invokeJavaMethod(context.getArrayStoreWriteBarrier()...
public final void writeArrayStoreWriteBarrier(X86CompilerContext context, Register refReg, Register indexReg, Register valueReg) { writePUSH(refReg); writePUSH(indexReg); writePUSH(valueReg); invokeJavaMethod(context.getArrayStoreWriteBarrier(), context); }
VmInstanceField field, Register refReg, Register valueReg) {
VmInstanceField field, Register refReg, Register valueReg, Register scratchReg) {
public final void writePutfieldWriteBarrier(X86CompilerContext context, VmInstanceField field, Register refReg, Register valueReg) { if (field.isObjectRef()) { writePUSH(refReg); writePUSH(field.getOffset()); writePUSH(valueReg); invokeJavaMethod(context...
writePUSH(refReg); writePUSH(field.getOffset()); writePUSH(valueReg); invokeJavaMethod(context.getPutfieldWriteBarrier(), context);
final VmWriteBarrier wb = context.getWriteBarrier(); if (wb != null) { os.writeMOV_Const(scratchReg, wb); writePUSH(scratchReg); writePUSH(refReg); writePUSH(field.getOffset()); writePUSH(valueReg); invokeJavaMethod(context.getPutfieldWriteBarrier(), context); }
public final void writePutfieldWriteBarrier(X86CompilerContext context, VmInstanceField field, Register refReg, Register valueReg) { if (field.isObjectRef()) { writePUSH(refReg); writePUSH(field.getOffset()); writePUSH(valueReg); invokeJavaMethod(context...
VmStaticField field, Register valueReg) {
VmStaticField field, Register valueReg, Register scratchReg) {
public final void writePutstaticWriteBarrier(X86CompilerContext context, VmStaticField field, Register valueReg) { if (field.isObjectRef()) { writePUSH(field.getStaticsIndex()); writePUSH(valueReg); invokeJavaMethod(context.getPutstaticWriteBarrier(), context); ...
writePUSH(field.getStaticsIndex()); writePUSH(valueReg); invokeJavaMethod(context.getPutstaticWriteBarrier(), context);
final VmWriteBarrier wb = context.getWriteBarrier(); if (wb != null) { os.writeMOV_Const(scratchReg, wb); writePUSH(scratchReg); writePUSH(field.getStaticsIndex()); writePUSH(valueReg); invokeJavaMethod(context.getPutstaticWriteBarrier(), context); }
public final void writePutstaticWriteBarrier(X86CompilerContext context, VmStaticField field, Register valueReg) { if (field.isObjectRef()) { writePUSH(field.getStaticsIndex()); writePUSH(valueReg); invokeJavaMethod(context.getPutstaticWriteBarrier(), context); ...
caretBlinkTimer = new CaretBlinkTimer();
public JTextComponent() { Keymap defkeymap = getKeymap(DEFAULT_KEYMAP); boolean creatingKeymap = false; if (defkeymap == null) { defkeymap = addKeymap(DEFAULT_KEYMAP, null); defkeymap.setDefaultAction(new DefaultEditorKit.DefaultKeyTypedAction()); creatingKeymap = true; } c...
end = Math.max(end, 0);
end = Math.max(end, start);
public void select(int start, int end) { int length = doc.getLength(); start = Math.max(start, 0); start = Math.min(start, length); end = Math.max(end, 0); end = Math.min(end, length); setCaretPosition(start); moveCaretPosition(end); }
caretBlinkTimer.update();
public void setCaret(Caret newCaret) { if (caret != null) caret.deinstall(this); Caret oldCaret = caret; caret = newCaret; caretBlinkTimer.update(); if (caret != null) caret.install(this); firePropertyChange("caret", oldCaret, newCaret); }
if (newValue == true) caretBlinkTimer.start(); else { caretBlinkTimer.stop(); caret.setVisible(false); }
public void setEditable(boolean newValue) { if (editable == newValue) return; if (newValue == true) caretBlinkTimer.start(); else { caretBlinkTimer.stop(); caret.setVisible(false); } boolean oldValue = editable; editable = newValue; firePropertyChange("editable", o...
StringSelection(String data) {
public StringSelection(String data) {
StringSelection(String data){ this.data = data;}
public abstract DataFlavor[] getTransferDataFlavors();
DataFlavor[] getTransferDataFlavors();
public abstract DataFlavor[] getTransferDataFlavors();
public final int get(int field) {
public int get(int field) {
public final int get(int field) { // If the requested field is invalid, force all fields to be recomputed. if (!isSet[field]) areFieldsSet = false; complete(); return fields[field]; }
public abstract int getActualMaximum(int field);
public int getActualMaximum(int field) { Calendar tmp = (Calendar)clone(); int max = tmp.getLeastMaximum(field); int end = tmp.getMaximum(field); tmp.set(field, max); for (; max < end; max++) { tmp.add(field, 1); if (tmp.get(field) != max + 1) break; } return max; }
public abstract int getActualMaximum(int field);
public abstract int getActualMinimum(int field);
public int getActualMinimum(int field) { Calendar tmp = (Calendar)clone(); int min = tmp.getGreatestMinimum(field); int end = tmp.getMinimum(field); tmp.set(field, min); for (; min > end; min--) { tmp.add(field, -1); if (tmp.get(field) != min - 1) break; } return min; }
public abstract int getActualMinimum(int field);
public static synchronized Locale[] getAvailableLocales() { ResourceBundle rb = ResourceBundle.getBundle(bundleName, new Locale("", ""));
public static synchronized Locale[] getAvailableLocales() { ResourceBundle rb = getBundle(new Locale("", ""));
public static synchronized Locale[] getAvailableLocales() { ResourceBundle rb = ResourceBundle.getBundle(bundleName, new Locale("", "")); return (Locale[]) rb.getObject("availableLocales"); }
public final void set(int field, int value) {
public void set(int field, int value) {
public final void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR : case MONTH : case DATE : isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEE...
triggerSize = (int)Math.min(Integer.MAX_VALUE, getTotalMemory() / 5);
triggerSize = (int)Math.min(Integer.MAX_VALUE, getFreeMemory() * GC_TRIGGER_PERCENTAGE);
public void start() { // Create a Heap monitor heapMonitor = new Monitor(); final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final GCManager gcManager = new GCManager(this, arch, statics); this.gcThread = new GCThread(gcManager, heapMonitor); this.finalizerThread = new FinalizerThread(...
private static final synchronized long[] sha(long hh0, long hh1, long hh2,
private static synchronized final long[] sha(long hh0, long hh1, long hh2,
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ...
{ w[r] = (long) in[offset++] << 56 | ((long) in[offset++] & 0xFF) << 48
w[r] = (long) in[offset++] << 56 | ((long) in[offset++] & 0xFF) << 48
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ...
}
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ...
if (editor != null) editor.setBounds(rectangleForCurrentValue());
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable Insets i = getInsets(); int arrowSize = comboBox.getHeight() - (i.top + i.bottom); int editorWidth = comboBox.getBounds().width - arrowSize; if (edit...
if (editor != null) editor.setBounds(rectangleForCurrentValue());
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable Insets i = getInsets(); int arrowSize = comboBox.getHeight() - (i.top + i.bottom); int editorWidth = comboBox.getBounds().width - arrowSize; if (edit...
int h = comp.getPreferredSize().height;
Dimension d = comp.getPreferredSize();
protected Dimension getDefaultSize() { Component comp = DEFAULT_RENDERER.getListCellRendererComponent(listBox, " ", -1, false, ...
return new Dimension(100, h);
return d;
protected Dimension getDefaultSize() { Component comp = DEFAULT_RENDERER.getListCellRendererComponent(listBox, " ", -1, false, ...
if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height);
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (...
ComboBoxModel model = comboBox.getModel(); if (renderer != null && model.getSize() > 0)
if (renderer == null)
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (...
renderer = DEFAULT_RENDERER; } Object prototype = comboBox.getPrototypeDisplayValue(); if (prototype != null) { Component comp = renderer.getListCellRendererComponent (listBox, prototype, -1, false, false); currentValuePane.add(comp); comp.setFont(comboBox.getFont()); Dimension renderSize = comp.getPreferredSize(); cu...
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (...
return displaySize; } return getDefaultSize();
return dim;
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (...
Dimension size = getPreferredSize(c); size.width = 32767; return size;
return new Dimension(32767, 32767);
public Dimension getMaximumSize(JComponent c) { Dimension size = getPreferredSize(c); size.width = 32767; return size; }
d.height += i.top + i.bottom; int arrowButtonWidth = d.height - (i.top + i.bottom); cachedMinimumSize = new Dimension(d.width + arrowButtonWidth + i.left + i.right, d.height);
d.width += i.left + i.right + d.height; cachedMinimumSize = new Dimension(d.width, d.height + i.top + i.bottom);
public Dimension getMinimumSize(JComponent c) { if (isMinimumSizeDirty) { Insets i = getInsets(); Dimension d = getDisplaySize(); d.height += i.top + i.bottom; int arrowButtonWidth = d.height - (i.top + i.bottom); cachedMinimumSize = new Dimension(d.width + arrowButtonWidth + i...
Dimension size = getMinimumSize(c); size.width += 4; return size;
return getMinimumSize(c);
public Dimension getPreferredSize(JComponent c) { Dimension size = getMinimumSize(c); size.width += 4; return size; }
Rectangle cbBounds = SwingUtilities.getLocalBounds(comboBox); Rectangle abBounds = arrowButton.getBounds(); Rectangle rectForCurrentValue = new Rectangle(cbBounds.x, cbBounds.y, cbBounds.width - abBounds.width, cbBounds.height); return rectForCurrentValue;
int w = comboBox.getWidth(); int h = comboBox.getHeight(); Insets i = comboBox.getInsets(); int arrowSize = h - (i.top + i.bottom); if (arrowButton != null) { arrowSize = arrowButton.getWidth(); } return new Rectangle(i.left, i.top, w - (i.left + i.right + arrowSize), h - (i.top + i.left));
protected Rectangle rectangleForCurrentValue() { Rectangle cbBounds = SwingUtilities.getLocalBounds(comboBox); Rectangle abBounds = arrowButton.getBounds(); Rectangle rectForCurrentValue = new Rectangle(cbBounds.x, cbBounds.y, cbBounds.width - abBounds.width, cbBounds.height); return rectForCurre...
finally { reset(); if (opened) in.close(); }
public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); boolean opened = false; if (in != null) parser = new XMLParser(in, systemId, validating, ...
if (count == value.length) return (char[]) value.clone();
public char[] toCharArray() { // XXX ORP 1.0.9 crashes on (char[]) clone() during bootstrap, so we // omit this optimization for now. // if (count == value.length) // return (char[]) value.clone(); char[] copy = new char[count]; VMSystem.arraycopy(value, offset, copy, 0, count); return copy; ...
public String[] split (CharSequence input, int limit)
public String[] split (CharSequence input)
public String[] split (CharSequence input, int limit) { Matcher matcher = new Matcher(this, input); ArrayList list = new ArrayList(); int empties = 0; int count = 0; int start = 0; int end; boolean matched; while (matched = matcher.find() && (limit <= 0 || count < limit - 1)) { ++count; ...
Matcher matcher = new Matcher(this, input); ArrayList list = new ArrayList(); int empties = 0; int count = 0; int start = 0; int end; boolean matched; while (matched = matcher.find() && (limit <= 0 || count < limit - 1)) { ++count; end = matcher.start(); if (start == end) empties++; else { while (empties-- > 0) list.a...
return split(input, 0);
public String[] split (CharSequence input, int limit) { Matcher matcher = new Matcher(this, input); ArrayList list = new ArrayList(); int empties = 0; int count = 0; int start = 0; int end; boolean matched; while (matched = matcher.find() && (limit <= 0 || count < limit - 1)) { ++count; ...
ChangeListener listener; ChangeListener[] listeners; int index;
ChangeListener[] listeners = getChangeListeners();
protected void fireStateChanged () { // Variables ChangeListener listener; ChangeListener[] listeners; int index; // Get Listeners listeners = getChangeListeners (); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = listeners [index]; list...
listeners = getChangeListeners (); for (index = 0; index < listeners.length; index++) { listener = listeners [index]; listener.stateChanged (changeEvent); }
for (int i = 0; i < listeners.length; i++) listeners[i].stateChanged(changeEvent);
protected void fireStateChanged () { // Variables ChangeListener listener; ChangeListener[] listeners; int index; // Get Listeners listeners = getChangeListeners (); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = listeners [index]; list...
return (index != -1);
return index != -1;
public boolean isSelected () { return (index != -1); }
public abstract String getText();
String getText();
public abstract String getText();
public abstract void insert(String text, int pos);
void insert(String text, int pos);
public abstract void insert(String text, int pos);
public abstract Dimension getMinimumSize(int rows, int cols);
Dimension getMinimumSize(int rows, int cols);
public abstract Dimension getMinimumSize(int rows, int cols);
protected String paramString() { return (getClass().getName() + "(text=" + getText() + ")"); }
paramString() { return(getClass().getName() + "(text=" + getText() + ")"); }
protected String paramString() { return (getClass().getName() + "(text=" + getText() + ")"); }
public boolean isEditable() { return (editable); }
isEditable() { return(editable); }
public boolean isEditable() { return (editable); }
public synchronized String getText() { TextComponentPeer tcp = (TextComponentPeer) getPeer();
getText() { TextComponentPeer tcp = (TextComponentPeer)getPeer();
public synchronized String getText() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) text = tcp.getText(); return (text); }
public synchronized int getSelectionStart() { TextComponentPeer tcp = (TextComponentPeer) getPeer();
getSelectionStart() { TextComponentPeer tcp = (TextComponentPeer)getPeer();
public synchronized int getSelectionStart() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) selectionStart = tcp.getSelectionStart(); return (selectionStart); }
public synchronized int getSelectionEnd() { TextComponentPeer tcp = (TextComponentPeer) getPeer();
getSelectionEnd() { TextComponentPeer tcp = (TextComponentPeer)getPeer();
public synchronized int getSelectionEnd() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) selectionEnd = tcp.getSelectionEnd(); return (selectionEnd); }
public abstract Dimension getPreferredSize(int rows, int cols);
Dimension getPreferredSize(int rows, int cols);
public abstract Dimension getPreferredSize(int rows, int cols);
public abstract void replaceRange(String text, int start_pos, int end_pos);
void replaceRange(String text, int start_pos, int end_pos);
public abstract void replaceRange(String text, int start_pos, int end_pos);
Locale[] l = new Locale[1]; l[0] = Locale.US; return l;
return LocaleHelper.getCollatorLocales();
public static synchronized Locale[] getAvailableLocales () { // FIXME Locale[] l = new Locale[1]; l[0] = Locale.US; return l; }
return new SubMap(nil, toKey);
return new SubMap((K)(Object)nil, toKey);
public SortedMap<K, V> headMap(K toKey) { return new SubMap(nil, toKey); }
return new SubMap(fromKey, nil);
return new SubMap(fromKey, (K)(Object)nil);
public SortedMap<K, V> tailMap(K fromKey) { return new SubMap(fromKey, nil); }
throws NotImplementedException
public static Object getStaticAttribute(Object key) throws NotImplementedException { throw new InternalError("not implemented"); }
throw new InternalError("not implemented");
if (key == null) return null; return staticAttributeKeys.get(key);
public static Object getStaticAttribute(Object key) throws NotImplementedException { throw new InternalError("not implemented"); }
throws NotImplementedException
public static Object getStaticAttributeKey(Object key) throws NotImplementedException { throw new InternalError("not implemented"); }
throw new InternalError("not implemented");
return key.getClass().getName() + "." + key.toString();
public static Object getStaticAttributeKey(Object key) throws NotImplementedException { throw new InternalError("not implemented"); }
throws ClassNotFoundException, IOException, NotImplementedException
throws ClassNotFoundException, IOException
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException, NotImplementedException { throw new InternalError("not implemented"); }
throw new InternalError("not implemented");
if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = staticAttributeKeys.get(key); Object staticVal = staticAttributeKeys.get(val); if (staticKey != null) key = staticKey; if (staticVal != null) val = staticVal; a.add...
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException, NotImplementedException { throw new InternalError("not implemented"); }
throws ClassNotFoundException, IOException, NotImplementedException
throws ClassNotFoundException, IOException
public void readAttributes(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException, NotImplementedException { throw new InternalError("not implemented"); }
throw new InternalError("not implemented");
readAttributeSet(in, a);
public void readAttributes(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException, NotImplementedException { throw new InternalError("not implemented"); }
staticAttributeKeys.add(key);
if (key != null) staticAttributeKeys.put(key.getClass().getName() + "." + key.toString(), key);
public static void registerStaticAttributeKey(Object key) { staticAttributeKeys.add(key); }
throw new InternalError("not implemented");
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException, NotImplementedException { throw new InternalError("not implemented"); }
throws IOException, NotImplementedException
throws IOException
public void writeAttributes(ObjectOutputStream out, AttributeSet a) throws IOException, NotImplementedException { throw new InternalError("not implemented"); }
throw new InternalError("not implemented");
writeAttributeSet(out, a);
public void writeAttributes(ObjectOutputStream out, AttributeSet a) throws IOException, NotImplementedException { throw new InternalError("not implemented"); }
if (DEBUG && debuglevel > 8) { debug("EM (sign): " + Util.toString(EM)); }
if (Configuration.DEBUG) log.fine("EM (sign): " + Util.toString(EM));
protected Object generateSignature() throws IllegalStateException { // 1. Apply the EMSA-PSS encoding operation to the message M to produce an // encoded message EM of length CEILING((modBits ? 1)/8) octets such // that the bit length of the integer OS2IP(EM) is at most modBits ? 1: // EM = EMSA...
if (!(k instanceof RSAPrivateKey)) {
if (! (k instanceof RSAPrivateKey))
protected void setupForSigning(PrivateKey k) throws IllegalArgumentException { if (!(k instanceof RSAPrivateKey)) { throw new IllegalArgumentException(); } privateKey = (RSAPrivateKey) k; }
}
protected void setupForSigning(PrivateKey k) throws IllegalArgumentException { if (!(k instanceof RSAPrivateKey)) { throw new IllegalArgumentException(); } privateKey = (RSAPrivateKey) k; }
if (!(k instanceof RSAPublicKey)) {
if (! (k instanceof RSAPublicKey))
protected void setupForVerification(PublicKey k) throws IllegalArgumentException { if (!(k instanceof RSAPublicKey)) { throw new IllegalArgumentException(); } publicKey = (RSAPublicKey) k; }
}
protected void setupForVerification(PublicKey k) throws IllegalArgumentException { if (!(k instanceof RSAPublicKey)) { throw new IllegalArgumentException(); } publicKey = (RSAPublicKey) k; }
{
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // ...
}
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // ...
if (DEBUG && debuglevel > 8) { debug("EM (verify): " + Util.toString(EM)); }
if (Configuration.DEBUG) log.fine("EM (verify): " + Util.toString(EM));
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // ...
return super.isVisible();
return visible;
public boolean isVisible() { return super.isVisible(); }
super.setVisible(visible);
this.visible = visible;
public void setVisible(boolean visible) { boolean old = isVisible(); super.setVisible(visible); if (old != isVisible()) { firePropertyChange(VISIBLE_CHANGED_PROPERTY, old, (boolean) isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Container) SwingUti...
revalidate(); repaint();
public void remove (int index) { Component c = getComponent (index); Integer layer = getLayer (c); decrLayer (layer); componentToLayer.remove (c); super.remove (index); }
x = y = height = width = east = south = null;
x = y = height = width = east = south = v = h = null;
public Constraints() { x = y = height = width = east = south = null; }
retVal = y;
retVal = getY();
public Spring getConstraint(String edgeName) { Spring retVal = null; if (edgeName.equals(SpringLayout.NORTH)) retVal = y; else if (edgeName.equals(SpringLayout.WEST)) retVal = x; else if (edgeName.equals(SpringLayout.SOUTH)) { retVal = south; if ((retVal == null) && (...
retVal = x;
retVal = getX();
public Spring getConstraint(String edgeName) { Spring retVal = null; if (edgeName.equals(SpringLayout.NORTH)) retVal = y; else if (edgeName.equals(SpringLayout.WEST)) retVal = x; else if (edgeName.equals(SpringLayout.SOUTH)) { retVal = south; if ((retVal == null) && (...
{ retVal = south; if ((retVal == null) && (y != null) && (height != null)) retVal = Spring.sum(y, height); }
retVal = getSouth();
public Spring getConstraint(String edgeName) { Spring retVal = null; if (edgeName.equals(SpringLayout.NORTH)) retVal = y; else if (edgeName.equals(SpringLayout.WEST)) retVal = x; else if (edgeName.equals(SpringLayout.SOUTH)) { retVal = south; if ((retVal == null) && (...
{ retVal = east; if ((retVal == null) && (x != null) && (width != null)) retVal = Spring.sum(x, width); }
retVal = getEast();
public Spring getConstraint(String edgeName) { Spring retVal = null; if (edgeName.equals(SpringLayout.NORTH)) retVal = y; else if (edgeName.equals(SpringLayout.WEST)) retVal = x; else if (edgeName.equals(SpringLayout.SOUTH)) { retVal = south; if ((retVal == null) && (...