rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
return (HTMLDocument) e.getDocument();
Document d = e.getDocument(); if (d instanceof HTMLDocument) return (HTMLDocument) d; throw new IllegalArgumentException("Document is not a HTMLDocument.");
protected HTMLDocument getHTMLDocument(JEditorPane e) { return (HTMLDocument) e.getDocument(); }
return (HTMLEditorKit) e.getEditorKit();
EditorKit d = e.getEditorKit(); if (d instanceof HTMLEditorKit) return (HTMLEditorKit) d; throw new IllegalArgumentException("EditorKit is not a HTMLEditorKit.");
protected HTMLEditorKit getHTMLEditorKit(JEditorPane e) { return (HTMLEditorKit) e.getEditorKit(); }
Object source = ae.getSource(); if (source instanceof JEditorPane) { JEditorPane pane = ((JEditorPane) source); Document d = pane.getDocument(); if (d instanceof HTMLDocument) insertHTML(pane, (HTMLDocument) d, 0, html, 0, 0, addTag); }
public void actionPerformed(ActionEvent ae) { // FIXME: Not implemented. }
catch (Exception e)
catch (IOException e) { throw (RuntimeException) new RuntimeException("Parser is null.").initCause(e); } catch (BadLocationException ex)
protected void insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag) { try { super.getHTMLEditorKit(editor).insertHTML(doc, of...
throw new RuntimeException(e);
throw (RuntimeException) new RuntimeException("BadLocationException: " + offset).initCause(ex);
protected void insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag) { try { super.getHTMLEditorKit(editor).insertHTML(doc, of...
super();
public LinkController() { // FIXME: Anything to do here? }
document.setParser(getParser());
public Document createDefaultDocument() { HTMLDocument document = new HTMLDocument(); return document; }
super.createInputAttributes(element, set);
set.addAttributes(element.getAttributes());
protected void createInputAttributes(Element element, MutableAttributeSet set) { // FIXME: Not implemented. super.createInputAttributes(element, set); }
c.removeMouseListener(mouseListener); mouseListener = null; editorPane = null;
public void deinstall(JEditorPane c) { // FIXME: Need to uninstall all listeners attached. super.deinstall(c); }
return super.getActions();
return TextAction.augmentList(super.getActions(), defaultActions);
public Action[] getActions() { // FIXME: should return different actions? return super.getActions(); }
return "text/html";
return contentType;
public String getContentType() { return "text/html"; }
return super.getInputAttributes();
return inputAttributes;
public MutableAttributeSet getInputAttributes() { // FIXME: Anything else to do here? return super.getInputAttributes(); }
return new ParserDelegator();
if (parser == null) parser = new ParserDelegator(); return parser;
protected Parser getParser() { return new ParserDelegator(); }
Parser parser = getParser(); if (offset < 0 || offset > doc.getLength()) throw new BadLocationException("Bad location", offset); if (parser == null) throw new IOException("Parser is null."); ParserCallback pc = ((HTMLDocument) doc).getReader (offset, popDepth, pushDepth, insertTag); parser.parse(new StringReader(h...
public void insertHTML(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag) throws BadLocationException, IOException { // FIXME: Not implemented. }
mouseListener = new LinkController(); c.addMouseListener(mouseListener); editorPane = c;
public void install(JEditorPane c) { // FIXME: Anything else to do here? super.install(c); }
if (doc instanceof HTMLDocument) { Parser parser = getParser(); if (pos < 0 || pos > doc.getLength()) throw new BadLocationException("Bad location", pos); if (parser == null) throw new IOException("Parser is null."); HTMLDocument hd = ((HTMLDocument) doc); hd.setBase(editorPane.getPage()); ParserCallback pc = hd.getRe...
public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException { // FIXME: Not implemented. }
if (doc instanceof HTMLDocument) { out.write(doc.getText(pos, len)); } else super.write(out, doc, pos, len);
public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException { // FIXME: Not implemented. }
isMinimumSizeDirty = true;
public void focusGained(FocusEvent e) { hasFocus = true; comboBox.repaint(); }
isMinimumSizeDirty = true;
public void focusLost(FocusEvent e) { hasFocus = false; setPopupVisible(comboBox, false); comboBox.repaint(); }
isMinimumSizeDirty = true;
public void itemStateChanged(ItemEvent e) { if (e.getStateChange() == ItemEvent.SELECTED && comboBox.isEditable()) comboBox.getEditor().setItem(e.getItem()); comboBox.repaint(); }
isMinimumSizeDirty = true;
public void contentsChanged(ListDataEvent e) { // if the item is selected or deselected }
isMinimumSizeDirty = true;
public void intervalAdded(ListDataEvent e) { ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (displaySize == null) displaySize = getDisplaySize(); if (displaySize.width < getDefaultSize().width) displaySize.width = getDefaultSize...
isMinimumSizeDirty = true;
public void intervalRemoved(ListDataEvent e) { // recalculate display size of the JComboBox. displaySize = getDisplaySize(); comboBox.repaint(); }
isMinimumSizeDirty = true;
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("enabled")) { arrowButton.setEnabled(comboBox.isEnabled()); if (comboBox.isEditable()) comboBox.getEditor().getEditorComponent().setEnabled(comboBox .isE...
Dimension result = new Dimension(d.width + arrowButtonWidth, d.height); return result;
cachedMinimumSize = new Dimension(d.width + arrowButtonWidth, d.height); isMinimumSizeDirty = false; } return new Dimension(cachedMinimumSize);
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); int arrowButtonWidth = d.height; Dimension result = new Dimension(d.width + arrowButtonWidth, d.height); return result; }
acceptThread.setDaemon(true);
ActiveModeDTP(InetAddress localhost, int port, int connectionTimeout, int timeout) throws IOException { completed = false; inProgress = false; server = new ServerSocket(port, 1, localhost); if (timeout > 0) { server.setSoTimeout(timeout); } if (connectionTimeout <= 0...
throw new BAD_OPERATION("Binding list expected");
BAD_OPERATION bad = new BAD_OPERATION("Binding list expected"); bad.initCause(ex); throw bad;
public static Binding[] extract(Any a) { try { return ((BindingListHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Binding list expected"); } }
x = new BigInteger(1, xBytes);
log.finest(Util.dumpString(xBytes, "xBytes: ")); DERReader der2 = new DERReader(xBytes); val = der2.read(); DerUtil.checkIsBigInteger(val, "Wrong X field"); x = (BigInteger) val.getValue();
public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); DerUtil.checkIsConstructed(derPKI, "...
log.exiting("DSSKeyPairPKCS8Codec", "decodePrivateKey");
public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); DerUtil.checkIsConstructed(derPKI, "...
DERValue derPrivateKey = new DERValue(DER.OCTET_STRING, Util.trim(x));
DERValue derX = new DERValue(DER.INTEGER, x); DERValue derPrivateKey = new DERValue(DER.OCTET_STRING, derX.getEncoded());
public byte[] encodePrivateKey(PrivateKey key) { if (! (key instanceof DSSPrivateKey)) throw new InvalidParameterException("Wrong key type"); DERValue derVersion = new DERValue(DER.INTEGER, BigInteger.ZERO); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, DSA_ALG_OID); DSSPrivateKey pk = (DSSP...
throws NotImplementedException
public void nodeStructureChanged(TreeNode node) { // TODO }
throws NotImplementedException
public void reload() { // TODO }
this.success = false;
this.dropSuccess = false;
public DragSourceDropEvent (DragSourceContext context) { super (context); this.dropAction = 0; this.success = false; }
return success;
return dropSuccess;
public boolean getDropSuccess() { return success; }
setOpaque(true);
public JTextComponent() { Keymap defkeymap = getKeymap(DEFAULT_KEYMAP); if (defkeymap == null) { defkeymap = addKeymap(DEFAULT_KEYMAP, null); defkeymap.setDefaultAction(new DefaultEditorKit.DefaultKeyTypedAction()); } setFocusable(true); setEditable(true); enableEvents(AWTEvent...
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return JobKOctetsSupported.class; }
public final String getName()
public String getName()
public final String getName() { return "job-k-octets-supported"; }
super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, X.509 Certificates");
super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores");
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, X.509 Certificates"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Sig...
put("CertificateFactory.X.509", gnu.java.security.provider.X509CertificateFactory.class.getName());
put("CertificateFactory.X509", X509CertificateFactory.class.getName());
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, X.509 Certificates"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Sig...
put("Alg.Alias.CertificateFactory.X509", "X.509");
put("CertificateFactory.X509 ImplementedIn", "Software"); put("Alg.Alias.CertificateFactory.X.509", "X509"); put("CertPathValidator.PKIX", PKIXCertPathValidatorImpl.class.getName()); put("CertPathValidator.PKIX ImplementedIn", "Software"); put("CertStore.Collection", CollectionCertStoreImpl.class.getName()); retur...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, X.509 Certificates"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Sig...
if (getItemCount() != 0) setSelectedItem(getItemAt(0));
public JComboBox(ComboBoxModel model) { setEditable(false); setEnabled(true); setMaximumRowCount(DEFAULT_MAXIMUM_ROW_COUNT); setModel(model); setActionCommand("comboBoxChanged"); // by default set selected item to the first element in the combo box if (getItemCount() != 0) setSelectedIt...
} else { throw new RuntimeException("Unable to add the item because the data model it is not an instance of MutableComboBoxModel."); }
public void addItem(Object element) { ((MutableComboBoxModel) dataModel).addElement(element); }
return ((MutableComboBoxModel) dataModel).getElementAt(index);
return dataModel.getElementAt(index);
public Object getItemAt(int index) { return ((MutableComboBoxModel) dataModel).getElementAt(index); }
return ((DefaultComboBoxModel) dataModel).getSize();
return dataModel.getSize();
public int getItemCount() { return ((DefaultComboBoxModel) dataModel).getSize(); }
if (selectedItem != null && (dataModel instanceof DefaultComboBoxModel))
if (selectedItem != null) { if(dataModel instanceof DefaultComboBoxModel) {
public int getSelectedIndex() { Object selectedItem = getSelectedItem(); if (selectedItem != null && (dataModel instanceof DefaultComboBoxModel)) return ((DefaultComboBoxModel) dataModel).getIndexOf(selectedItem); return -1; }
Object item = dataModel.getSelectedItem(); if (item == null && getItemCount() != 0) item = getItemAt(0); return item;
return dataModel.getSelectedItem();
public Object getSelectedItem() { Object item = dataModel.getSelectedItem(); if (item == null && getItemCount() != 0) item = getItemAt(0); return item; }
Object selectedObject = getSelectedItem(); return new Object[] { selectedObject };
return new Object[] { getSelectedItem() };
public Object[] getSelectedObjects() { Object selectedObject = getSelectedItem(); return new Object[] { selectedObject }; }
} else { throw new RuntimeException("Unable to insert the item because the data model it is not an instance of MutableComboBoxModel."); }
public void insertItemAt(Object element, int index) { ((MutableComboBoxModel) dataModel).insertElementAt(element, index); }
if (dataModel instanceof DefaultComboBoxModel)
if (dataModel instanceof DefaultComboBoxModel) {
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) ((DefaultComboBoxModel) dataModel).removeAllElements(); }
} else if(dataModel instanceof MutableComboBoxModel){ MutableComboBoxModel mcbm = (MutableComboBoxModel) dataModel; for(int i=mcbm.getSize()-1; i >= 0; i--) { mcbm.removeElementAt(i); } } else { throw new RuntimeException("Unable to remove the items because the data model it is not an instance of MutableComboBoxMod...
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) ((DefaultComboBoxModel) dataModel).removeAllElements(); }
} else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); }
public void removeItem(Object element) { ((MutableComboBoxModel) dataModel).removeElement(element); }
} else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); }
public void removeItemAt(int index) { ((MutableComboBoxModel) dataModel).removeElementAt(index); }
if (this.isEditable != editable)
if (isEditable != editable)
public void setEditable(boolean editable) { if (this.isEditable != editable) { this.isEditable = editable; firePropertyChange(EDITABLE_CHANGED_PROPERTY, ! isEditable, isEditable); } }
this.isEditable = editable;
isEditable = editable;
public void setEditable(boolean editable) { if (this.isEditable != editable) { this.isEditable = editable; firePropertyChange(EDITABLE_CHANGED_PROPERTY, ! isEditable, isEditable); } }
this.lightWeightPopupEnabled = enabled;
lightWeightPopupEnabled = enabled;
public void setLightWeightPopupEnabled(boolean enabled) { this.lightWeightPopupEnabled = enabled; }
int oldMaximumRowCount = this.maximumRowCount; this.maximumRowCount = rowCount;
int oldMaximumRowCount = maximumRowCount; maximumRowCount = rowCount;
public void setMaximumRowCount(int rowCount) { if (maximumRowCount != rowCount) { int oldMaximumRowCount = this.maximumRowCount; this.maximumRowCount = rowCount; firePropertyChange(MAXIMUM_ROW_COUNT_CHANGED_PROPERTY, oldMaximumRowCount, this.maximumRowCount); } }
oldMaximumRowCount, this.maximumRowCount);
oldMaximumRowCount, maximumRowCount);
public void setMaximumRowCount(int rowCount) { if (maximumRowCount != rowCount) { int oldMaximumRowCount = this.maximumRowCount; this.maximumRowCount = rowCount; firePropertyChange(MAXIMUM_ROW_COUNT_CHANGED_PROPERTY, oldMaximumRowCount, this.maximumRowCount); } }
if (this.dataModel == newDataModel)
if(dataModel != null) { if (dataModel == newDataModel)
public void setModel(ComboBoxModel newDataModel) { if (this.dataModel == newDataModel) return; if (this.dataModel != null) // remove all listeners currently registered with the model. dataModel.removeListDataListener(this); ComboBoxModel oldDataModel = this.dataModel; this.dataModel = newD...
if (this.dataModel != null)
public void setModel(ComboBoxModel newDataModel) { if (this.dataModel == newDataModel) return; if (this.dataModel != null) // remove all listeners currently registered with the model. dataModel.removeListDataListener(this); ComboBoxModel oldDataModel = this.dataModel; this.dataModel = newD...
ComboBoxModel oldDataModel = this.dataModel; this.dataModel = newDataModel;
newDataModel.addListDataListener(this);
public void setModel(ComboBoxModel newDataModel) { if (this.dataModel == newDataModel) return; if (this.dataModel != null) // remove all listeners currently registered with the model. dataModel.removeListDataListener(this); ComboBoxModel oldDataModel = this.dataModel; this.dataModel = newD...
if (this.dataModel != null) dataModel.addListDataListener(this);
ComboBoxModel oldDataModel = dataModel; dataModel = newDataModel;
public void setModel(ComboBoxModel newDataModel) { if (this.dataModel == newDataModel) return; if (this.dataModel != null) // remove all listeners currently registered with the model. dataModel.removeListDataListener(this); ComboBoxModel oldDataModel = this.dataModel; this.dataModel = newD...
firePropertyChange(MODEL_CHANGED_PROPERTY, oldDataModel, this.dataModel);
firePropertyChange(MODEL_CHANGED_PROPERTY, oldDataModel, dataModel);
public void setModel(ComboBoxModel newDataModel) { if (this.dataModel == newDataModel) return; if (this.dataModel != null) // remove all listeners currently registered with the model. dataModel.removeListDataListener(this); ComboBoxModel oldDataModel = this.dataModel; this.dataModel = newD...
public void setPrototypeDisplayValue(Object prototypeDisplayValue)
public void setPrototypeDisplayValue(Object newPrototypeDisplayValue)
public void setPrototypeDisplayValue(Object prototypeDisplayValue) { this.prototypeDisplayValue = prototypeDisplayValue; }
this.prototypeDisplayValue = prototypeDisplayValue;
prototypeDisplayValue = newPrototypeDisplayValue;
public void setPrototypeDisplayValue(Object prototypeDisplayValue) { this.prototypeDisplayValue = prototypeDisplayValue; }
if (this.renderer != aRenderer)
if (renderer != aRenderer)
public void setRenderer(ListCellRenderer aRenderer) { if (this.renderer != aRenderer) { ListCellRenderer oldRenderer = this.renderer; this.renderer = aRenderer; firePropertyChange(RENDERER_CHANGED_PROPERTY, oldRenderer, this.renderer); } }
ListCellRenderer oldRenderer = this.renderer; this.renderer = aRenderer;
ListCellRenderer oldRenderer = renderer; renderer = aRenderer;
public void setRenderer(ListCellRenderer aRenderer) { if (this.renderer != aRenderer) { ListCellRenderer oldRenderer = this.renderer; this.renderer = aRenderer; firePropertyChange(RENDERER_CHANGED_PROPERTY, oldRenderer, this.renderer); } }
this.renderer);
renderer);
public void setRenderer(ListCellRenderer aRenderer) { if (this.renderer != aRenderer) { ListCellRenderer oldRenderer = this.renderer; this.renderer = aRenderer; firePropertyChange(RENDERER_CHANGED_PROPERTY, oldRenderer, this.renderer); } }
setSelectedItem(dataModel.getElementAt(index));
if(index < -1 || index >= dataModel.getSize()) { throw new IllegalArgumentException("illegal index: " + index); } else { setSelectedItem((index == -1) ? null : dataModel.getElementAt(index)); }
public void setSelectedIndex(int index) { // FIXME: if index == -1 then nothing should be selected setSelectedItem(dataModel.getElementAt(index)); }
public Info(String name, String vendor, String desc, String vers)
protected Info(String name, String vendor, String desc, String vers)
public Info(String name, String vendor, String desc, String vers) { this.name = name; this.description = desc; this.vendor = vendor; this.version = vers; }
public String toString()
public final String toString()
public String toString() { return ("name=" + name + "; description=" + description + "; vendor=" + vendor + "; version=" + version); }
final char ch = signature.charAt(signature.length() - 1); if (ch == 'V') { } else if ((ch == 'J') || (ch == 'D')) { stackMgr.writePUSH64(JvmType.SignatureToType(ch), Register.EAX, Register.EDX); } else { stackMgr.writePUSH(JvmType.SignatureToType(ch), Register.EAX);
final int returnType = JvmType.getReturnType(signature); assertCondition(signature.endsWith("V") == (returnType == JvmType.VOID), "Return type"); switch (returnType) { case JvmType.VOID: break; case JvmType.DOUBLE: case JvmType.LONG: stackMgr.writePUSH64(returnType, Register.EAX, Register.EDX); break; default: stac...
public final void invokeJavaMethod(String signature) { os.writeCALL(Register.EAX, context.getVmMethodNativeCodeField() .getOffset()); //writeJumpTableCALL(X86JumpTable.VM_INVOKE_OFS); final char ch = signature.charAt(signature.length() - 1); if (ch == 'V') { /**...
Node copy = item.cloneNode(true); cursor.appendChild(copy); cursor = copy;
cursor.appendChild(item); cursor = item;
protected void handleEndTag(TagElement tag) { String name = tag.getHTMLTag().toString(); String nname = cursor.getNodeName(); // Closing the current tag. if (nname != null && nname.equalsIgnoreCase(name)) { cursor = cursor.getParentNode(); } else { Node nCursor = cursor.ge...
document.setCheckWellformedness(false);
public HTMLDocument parseDocument(Reader input) throws IOException { try { document = new DomHTMLDocument(); cursor = document; parse(input); DomHTMLDocument h = document; document = null; return h; } catch (Exception ex) { ex.p...
&& header.getTable().getInterCellSpacing() != null) spacing = header.getTable().getInterCellSpacing().width;
&& header.getTable().getIntercellSpacing() != null) spacing = header.getTable().getIntercellSpacing().width;
public Dimension getPreferredSize(JComponent c) { TableColumnModel cmod = header.getColumnModel(); TableCellRenderer defaultRend = header.getDefaultRenderer(); int ncols = cmod.getColumnCount(); Dimension ret = new Dimension(0,0); int spacing = 0; if (header.getTable() != null && header...
if (negative || addition != null) return 1;
int getMaximumLength() { int max = 0; int x; for (int i=0; i < options.size(); i++) { if ((x = ((REToken) options.elementAt(i)).getMaximumLength()) > max) max = x; } return max; }
if (negative || addition != null) return 1;
int getMinimumLength() { int min = Integer.MAX_VALUE; int x; for (int i=0; i < options.size(); i++) { if ((x = ((REToken) options.elementAt(i)).getMinimumLength()) < min) min = x; } return min; }
return negative ? matchN(input, mymatch) : matchP(input, mymatch);
REMatch tryMatch; boolean tryOnly; if (addition == null) { tryMatch = mymatch; tryOnly = false; } else { tryMatch = (REMatch) mymatch.clone(); tryOnly = true; } boolean b = negative ? matchN(input, tryMatch, tryOnly) : matchP(input, tryMatch, tryOnly); if (addition == null) return b; Stack stack = new Stack(); stack.p...
boolean match(CharIndexed input, REMatch mymatch) { return negative ? matchN(input, mymatch) : matchP(input, mymatch); }
private boolean matchN(CharIndexed input, REMatch mymatch) {
private boolean matchN(CharIndexed input, REMatch mymatch, boolean tryOnly) {
private boolean matchN(CharIndexed input, REMatch mymatch) { if (input.charAt(mymatch.index) == CharIndexed.OUT_OF_BOUNDS) return false; REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { tk = (REToken) options.elementAt(i); REMatch tryMatch = (RE...
if (tryOnly) return true;
private boolean matchN(CharIndexed input, REMatch mymatch) { if (input.charAt(mymatch.index) == CharIndexed.OUT_OF_BOUNDS) return false; REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { tk = (REToken) options.elementAt(i); REMatch tryMatch = (RE...
private boolean matchP(CharIndexed input, REMatch mymatch) {
private boolean matchP(CharIndexed input, REMatch mymatch, boolean tryOnly) {
private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch.REMatchList newMatch = new REMatch.REMatchList(); REToken tk; for (int i=0; i < options.size(); i++) { // In order that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side eff...
if (tryOnly) return false;
private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch.REMatchList newMatch = new REMatch.REMatchList(); REToken tk; for (int i=0; i < options.size(); i++) { // In order that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side eff...
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return ColorSupported.class; }
public final String getName()
public String getName()
public final String getName() { return "color-supported"; }
final String filename = ARG_CLASS.getValue(cmdLine);
final String className = ARG_CLASS.getValue(cmdLine);
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); final String filename = ARG_CLASS.getValue(cmdLine); final int level = PARAM_LEVEL.isSet(cmdLine) ? ARG_LEVEL.getInteger(cmdLine) : 0; final VmType type = VmSystem.getSystemClassLoader().loadClass(filename, t...
final VmType type = VmSystem.getSystemClassLoader().loadClass(filename, true);
final ClassLoader cl = Thread.currentThread().getContextClassLoader(); final Class cls = cl.loadClass(className); final VmType type = cls.getVmClass();
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); final String filename = ARG_CLASS.getValue(cmdLine); final int level = PARAM_LEVEL.isSet(cmdLine) ? ARG_LEVEL.getInteger(cmdLine) : 0; final VmType type = VmSystem.getSystemClassLoader().loadClass(filename, t...
cdrBufOutput buffer = new cdrBufOutput();
BufferedCdrOutput buffer = new BufferedCdrOutput();
public DynAny copy() { if (holder != null) { cdrBufOutput buffer = new cdrBufOutput(); holder._write(buffer); gnuDynAny other; try { other = new gnuDynAny((Streamable) (holder.getClass().newInstance()), official_type, fin...
typeNamer.nameIt(final_type)
TypeKindNamer.nameIt(final_type)
public DynAny current_component() throws TypeMismatch { throw new TypeMismatch("Not applicable for " + typeNamer.nameIt(final_type) ); }
if (other instanceof abstractDynAny)
if (other instanceof AbstractAny)
public boolean equal(DynAny other) { if (other instanceof abstractDynAny) { if (other instanceof gnuDynAny) { gnuDynAny x = (gnuDynAny) other; if (!x.holder.getClass().equals(holder.getClass())) return false; cdrBufOutput b1 = new cdrBufOutput(); ...
cdrBufOutput b1 = new cdrBufOutput();
BufferedCdrOutput b1 = new BufferedCdrOutput();
public boolean equal(DynAny other) { if (other instanceof abstractDynAny) { if (other instanceof gnuDynAny) { gnuDynAny x = (gnuDynAny) other; if (!x.holder.getClass().equals(holder.getClass())) return false; cdrBufOutput b1 = new cdrBufOutput(); ...
cdrBufOutput b2 = new cdrBufOutput(b1.buffer.size() + 10);
BufferedCdrOutput b2 = new BufferedCdrOutput(b1.buffer.size() + 10);
public boolean equal(DynAny other) { if (other instanceof abstractDynAny) { if (other instanceof gnuDynAny) { gnuDynAny x = (gnuDynAny) other; if (!x.holder.getClass().equals(holder.getClass())) return false; cdrBufOutput b1 = new cdrBufOutput(); ...
else if (a_holder instanceof universalHolder)
else if (a_holder instanceof GeneralHolder)
public void from_any(Any an_any) throws TypeMismatch, InvalidValue { checkType(official_type, an_any.type()); Streamable a_holder = an_any.extract_Streamable(); if (a_holder == null) { throw new InvalidValue(ISNULL); } else if (a_holder instanceof universalHolder) { holder = ...
holder = holderFactory.createHolder(official_type);
holder = HolderLocator.createHolder(official_type);
public void from_any(Any an_any) throws TypeMismatch, InvalidValue { checkType(official_type, an_any.type()); Streamable a_holder = an_any.extract_Streamable(); if (a_holder == null) { throw new InvalidValue(ISNULL); } else if (a_holder instanceof universalHolder) { holder = ...
holder = holderFactory.createHolder(final_type);
holder = HolderLocator.createHolder(final_type);
public void from_any(Any an_any) throws TypeMismatch, InvalidValue { checkType(official_type, an_any.type()); Streamable a_holder = an_any.extract_Streamable(); if (a_holder == null) { throw new InvalidValue(ISNULL); } else if (a_holder instanceof universalHolder) { holder = ...
holder = ((universalHolder) a_holder).Clone();
holder = ((GeneralHolder) a_holder).Clone();
public void from_any(Any an_any) throws TypeMismatch, InvalidValue { checkType(official_type, an_any.type()); Streamable a_holder = an_any.extract_Streamable(); if (a_holder == null) { throw new InvalidValue(ISNULL); } else if (a_holder instanceof universalHolder) { holder = ...
header.setCursor(Cursor.getDefaultCursor());
header.setCursor(originalCursor);
void endResizing() { TableColumnModel model = header.getColumnModel(); int n = model.getColumnCount(); if (n > 2) { TableColumn c; for (int i = 0; i < n; i++) { c = model.getColumn(i); c.setPreferredWidth(c.getWidth()); } ...
header.setCursor(Cursor.getDefaultCursor());
header.setCursor(originalCursor);
public void mouseMoved(MouseEvent e) { // When dragging, the functionality is handled by the mouseDragged. if (e.getButton() == 0 && header.getResizingAllowed()) { TableColumnModel model = header.getColumnModel(); int n = model.getColumnCount(); if (n < 2) /...
public void doPass2(BootableHashMap liveVariables) {
public void doPass2() {
public void doPass2(BootableHashMap liveVariables) { }
return getAddress() + ": goto " + getTargetAddress();
return getAddress() + ": goto " + getTargetBlock();
public String toString() { return getAddress() + ": goto " + getTargetAddress(); }
this.targetAddress = targetAddress;
Iterator it = block.getSuccessors().iterator(); while (it.hasNext()) { IRBasicBlock succ = (IRBasicBlock) it.next(); if (succ.getStartPC() == targetAddress) { targetBlock = succ; break; } } if (targetBlock == null) { throw new AssertionError("unable to find target block!"); }
public BranchQuad(int address, IRBasicBlock block, int targetAddress) { super(address, block); this.targetAddress = targetAddress; }
return targetAddress;
return targetBlock.getStartPC();
public int getTargetAddress() { return targetAddress; }