rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
VmProcessor.current().disableReschedule();
VmMagic.currentProcessor().disableReschedule(true);
public final void stopThreadsAtSafePoint() { VmProcessor.current().disableReschedule(); }
final Item res;
final WordItem res;
protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf...
final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT);
res = L1AHelper.requestWordRegister(ec, getType(), false); final Register r = res.getRegister();
protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf...
res = createReg(getType(), r); pool.transferOwnerTo(r, res);
protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf...
protected abstract Item cloneConstant();
protected abstract WordItem cloneConstant();
protected abstract Item cloneConstant();
return new Dimension(500, 500);
return new Dimension(width, height);
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continu...
return new Dimension(500, 500);
return new Dimension(width, height);
public Dimension preferredLayoutSize(Container container) { if (container instanceof JSplitPane) { JSplitPane split = (JSplitPane) container; Insets insets = container.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == nu...
if (byteOrder == UNKNOWN_ENDIAN)
if (byteOrder == UNKNOWN_ENDIAN || byteOrder == MAYBE_BIG_ENDIAN || byteOrder == MAYBE_LITTLE_ENDIAN)
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
byteOrder = BIG_ENDIAN;
byteOrder = (byteOrder == MAYBE_LITTLE_ENDIAN ? LITTLE_ENDIAN : BIG_ENDIAN);
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
return null;
return getMinimumSize();
public Dimension getMinimumSize(int rows) { return null; }
return null;
return getPreferredSize();
public Dimension getPreferredSize(int rows) { return null; }
public MidiUnavailableException(String s)
public MidiUnavailableException()
public MidiUnavailableException(String s) { super(s); }
super(s);
super();
public MidiUnavailableException(String s) { super(s); }
public String getMessage () { if (super.getMessage () == null && exception != null) return exception.getMessage (); return super.getMessage (); }
public String getMessage() { String message = super.getMessage(); if (message == null && exception != null) { message = exception.getMessage(); } return message; }
public String getMessage () { if (super.getMessage () == null && exception != null) return exception.getMessage (); return super.getMessage (); }
} else { if (a instanceof IorProvider && b instanceof IorProvider) { IOR ia = ((IorProvider) a).getIor(); IOR ib = ((IorProvider) b).getIor(); if (ia != null && ib != null) return (ia.equals(ib)); else return ia == ib; }
public boolean is_equivalent(org.omg.CORBA.Object target, org.omg.CORBA.Object other ) { if (target == other) return true; if ((target instanceof ObjectImpl) && other instanceof ObjectImpl) { try { org.omg.CORBA.por...
{ try
throws IOException
protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; }
catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; }
protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; }
throws IOException
public void read(InputStream in, Object desc) { }
}
public void setText(String text) { try { doc.remove(0, doc.getLength()); doc.insertString(0, text, null); } catch (BadLocationException e) { // This can never happen. } }
calculatePreferredSize(); layoutContainer(scrollbar);
public void stateChanged(ChangeEvent e) { getThumbBounds(); scrollbar.repaint(); }
width += Math.max(200, scrollbar.getVisibleAmount());
width += (scrollbar.getMaximum() - scrollbar.getMinimum());
private void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += Math.max(200, scrollbar.getVisibleAmount())...
height += Math.max(200, scrollbar.getVisibleAmount());
height += (scrollbar.getMaximum() - scrollbar.getMinimum());
private void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += Math.max(200, scrollbar.getVisibleAmount())...
scrollbar.setOpaque(true);
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollbar.setForeground(defaults.getColor("ScrollBar.foreground")); scrollbar.setBackground(defaults.getColor("ScrollBar.background")); scrollbar.setBorder(defaults.getBorder("ScrollBar.border")); maximumThumb...
protected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting)
protected void fireValueChanged(int firstIndex, int lastIndex)
protected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener[] listeners = getListS...
ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener[] listeners = getListSelectionListeners(); for (int i = 0; i < listeners.length; ++i) listeners[i].valueChanged(evt);
fireValueChanged(firstIndex, lastIndex, getValueIsAdjusting());
protected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener[] listeners = getListS...
module = (LoginModule) Class.forName (entry.getLoginModuleName()).newInstance();
ClassLoader cl = Thread.currentThread().getContextClassLoader(); Class c = Class.forName(entry.getLoginModuleName(), true, cl); module = (LoginModule) c.newInstance();
private LoginModule lookupModule (AppConfigurationEntry entry, Subject subject, Map sharedState) throws LoginException { LoginModule module = null; Exception cause = null; try { module = (LoginModule) Class.forName (entry.getLoginModuleName()).newInstance();...
public TypeMismatch(String why)
public TypeMismatch()
public TypeMismatch(String why) { super(why); }
super(why);
public TypeMismatch(String why) { super(why); }
"LEFT", "positiveUnitIncrement",
"LEFT", "negativeUnitIncrement",
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
"RIGHT", "negativeUnitIncrement", "KP_LEFT", "positiveUnitIncrement",
"RIGHT", "positiveUnitIncrement", "KP_LEFT", "negativeUnitIncrement",
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
"KP_RIGHT", "negativeUnitIncrement"
"KP_RIGHT", "positiveUnitIncrement"
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
"LEFT", "negativeIncremnent",
"LEFT", "negativeIncrement",
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
"KP_RIGHT", "positiveIncrement"
"KP_RIGHT", "positiveIncrement", "shift ctrl pressed TAB", "focusOutBackward", "ctrl pressed TAB", "focusOutForward"
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
for (i = lo; i < hi; ++i)
for (i = lo; i <= hi; ++i)
public int[] getSelectedIndices() { int lo, hi, n, i, j; if (selectionModel.isSelectionEmpty()) return new int[0]; lo = selectionModel.getMinSelectionIndex(); hi = selectionModel.getMaxSelectionIndex(); n = 0; for (i = lo; i < hi; ++i) if (selectionModel.isSelectedIndex(i)) n++; ...
enableEvents( AWTEvent.KEY_EVENT_MASK );
public JComponent() { super(); super.setLayout(new FlowLayout()); //eventMask |= AWTEvent.COMP_KEY_EVENT_MASK; enableEvents( AWTEvent.KEY_EVENT_MASK ); //updateUI(); // get a proper ui }
{ get_ancestor_list().addElement(listener); }
{ listenerList.add(AncestorListener.class, listener); }
public void addAncestorListener(AncestorListener listener) { get_ancestor_list().addElement(listener); }
{ get_change_list().addElement(listener); }
{ listenerList.add(PropertyChangeListener.class, listener); }
public void addPropertyChangeListener(PropertyChangeListener listener) { get_change_list().addElement(listener); }
{ get_veto_list().addElement(listener); }
{ listenerList.add(VetoableChangeListener.class, listener); }
public void addVetoableChangeListener(VetoableChangeListener listener) { get_veto_list().addElement(listener); }
throws PropertyVetoException
protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) { // Support for reporting constrained property changes. }
return "JComponent";
return "ComponentUI";
public String getUIClassID() { /// Return the UIDefaults key used to look up the name of the swing. return "JComponent"; }
Graphics g2 = g; Image im = null; Rectangle r = getBounds (); if (use_double_buffer) { im = createImage (r.width, r.height); g2 = im.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.cl...
public void paint(Graphics g) { // System.out.println("SWING_PAINT:" + this); paintBorder(g); paintComponent(g); paintChildren(g); }
paintBorder(g); paintComponent(g); paintChildren(g);
if (use_double_buffer) { g.drawImage (im, 0, 0, (ImageObserver)null); }
public void paint(Graphics g) { // System.out.println("SWING_PAINT:" + this); paintBorder(g); paintComponent(g); paintChildren(g); }
super.paint(g);
protected void paintChildren(Graphics g) { // Paint this component's children. //super.paintChildren(g); }
{ get_ancestor_list().removeElement(listener); }
{ listenerList.remove(AncestorListener.class, listener); }
public void removeAncestorListener(AncestorListener listener) { get_ancestor_list().removeElement(listener); }
{ get_change_list().removeElement(listener); }
{ listenerList.remove(PropertyChangeListener.class, listener); }
public void removePropertyChangeListener(PropertyChangeListener listener) { get_change_list().removeElement(listener); }
{ get_veto_list().removeElement(listener); }
{ listenerList.remove(VetoableChangeListener.class, listener); }
public void removeVetoableChangeListener(VetoableChangeListener listener) { get_veto_list().removeElement(listener); }
setPropertiesFromAttributes();
public LabelView(Element element) { super(element); }
protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); }
protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); enableEvents(AWTEvent.WINDOW_EVENT_MASK); getRootPane(); }
protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // will do set/create }
protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System.out.println("user requested exit on close"); System.exit(1); break; } case DISPOSE_ON_CLOSE : { System.out.println("user reques...
protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: { switch(close_action) { case EXIT_ON_CLOSE: { System.exit(1);
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System...
}
case WindowEvent.WINDOW_CLOSED: case WindowEvent.WINDOW_OPENED: case WindowEvent.WINDOW_ICONIFIED: case WindowEvent.WINDOW_DEICONIFIED: case WindowEvent.WINDOW_ACTIVATED: case WindowEvent.WINDOW_DEACTIVATED: break; } }
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System...
public void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); }
void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); }
public void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); }
if (SwingLabelPeer.this.awtComponent != null) retVal = SwingLabelPeer.this.awtComponent.isShowing();
if (label != null) retVal = label.isShowing();
public boolean isShowing() { boolean retVal = false; if (SwingLabelPeer.this.awtComponent != null) retVal = SwingLabelPeer.this.awtComponent.isShowing(); return retVal; }
SwingLabel swingLabel = new SwingLabel();
SwingLabel swingLabel = new SwingLabel(label);
public SwingLabelPeer(Label label) { super(); SwingLabel swingLabel = new SwingLabel(); swingLabel.setText(label.getText()); swingLabel.setHorizontalAlignment(label.getAlignment()); swingLabel.setOpaque(true); init(label, swingLabel); }
swingLabel.setHorizontalAlignment(label.getAlignment());
public SwingLabelPeer(Label label) { super(); SwingLabel swingLabel = new SwingLabel(); swingLabel.setText(label.getText()); swingLabel.setHorizontalAlignment(label.getAlignment()); swingLabel.setOpaque(true); init(label, swingLabel); }
setAlignment(label.getAlignment());
public SwingLabelPeer(Label label) { super(); SwingLabel swingLabel = new SwingLabel(); swingLabel.setText(label.getText()); swingLabel.setHorizontalAlignment(label.getAlignment()); swingLabel.setOpaque(true); init(label, swingLabel); }
((JLabel) swingComponent.getJComponent()).setHorizontalAlignment(alignment);
JLabel swingLabel = (JLabel) swingComponent.getJComponent(); switch (alignment) { case Label.RIGHT: swingLabel.setHorizontalAlignment(JLabel.RIGHT); break; case Label.CENTER: swingLabel.setHorizontalAlignment(JLabel.CENTER); break; case Label.LEFT: default: swingLabel.setHorizontalAlignment(JLabel.LEFT); break; }
public void setAlignment(int alignment) { ((JLabel) swingComponent.getJComponent()).setHorizontalAlignment(alignment); }
getName() { return(name); }
protected String getName() { return name; }
getName(){ return(name);}
int columnIndex;
public void setDataVector(Vector data, Vector columnNames) { // Variables int rowIndex; int columnIndex; int numRows; int numColumns; Vector columnVector; // Set Data dataVector = data; columnIdentifiers = columnNames; // Check Data numRows = data.size(); numColumns = columnNames.size(); for (rowIndex = 0...
return 12;
return 8;
public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new P...
return 12;
return 4;
public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new P...
g.translate(x, y);
public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new P...
g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3));
for (int i = 0; i < 4; i++) g.drawLine(x + i, y + i, x + i, y + 7 - i);
public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new P...
g.translate(-x, -y);
public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new P...
return 12;
return 8;
public int getIconHeight() { return 12; }
return 12;
return 4;
public int getIconWidth() { return 12; }
g.translate(x, y);
public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3)); g.setColor(saved); g.transla...
g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3));
for (int i = 0; i < 4; i++) g.drawLine(x + i, y + i, x + i, y + 7 - i);
public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3)); g.setColor(saved); g.transla...
g.translate(-x, -y);
public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3)); g.setColor(saved); g.transla...
if (!i.hasNext()) { return null; }
public String getHeaderFieldKey(int index) { if (!connected) { try { connect(); } catch (IOException e) { return null; } } if (index == 0) { return null; } Iterator i = response.getHeaders().entrySet().iterato...
if (beanInfo != null)
if (beanInfo != null && beanInfo.getBeanDescriptor() != null && beanInfo.getBeanDescriptor().getBeanClass() == beanClass)
static BeanInfo reallyFindExplicitBeanInfo(Class beanClass) { ClassLoader beanClassLoader = beanClass.getClassLoader(); BeanInfo beanInfo; beanInfo = getBeanInfo(beanClassLoader, beanClass.getName() + "BeanInfo"); if (beanInfo == null) { String newName; newName = ClassHelper.getTruncatedClassName(b...
ExplicitInfo.flushCaches();
public static void flushCaches() { beanInfoCache.clear(); }
b.setOpaque(true);
protected void installDefaults(AbstractButton b) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); b.setForeground(defaults.getColor("Button.foreground")); b.setBackground(defaults.getColor("Button.background")); b.setMargin(defaults.getInsets("Button.margin")); b.setBorder(defaults.getBorde...
lb = ((BasicArrowButton) c1); rb = ((BasicArrowButton) c2);
lb = (BasicArrowButton) c1; rb = (BasicArrowButton) c2;
public void layoutContainer(Container c) { // The only components we care about setting up are the // one touch buttons. if (splitPane.isOneTouchExpandable()) { if (c.getComponentCount() == 2) { Component c1 = c.getComponent(0); Component c2 = c...
public abstract NamedValue create_named_value(String s, Any any, int flags);
public abstract NamedValue create_named_value(String name, Any any, int flags);
public abstract NamedValue create_named_value(String s, Any any, int flags);
else
else if (url_string.length() > 0)
protected void parseURL (URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (!file.equals("")) { //h...
if (ref != null) sb.append('#').append(ref);
protected String toExternalForm (URL url) { String file = url.getFile(); // return "jar:" + file; // Performance!!: // Do the concatenation manually to avoid resize StringBuffer's // internal buffer. StringBuffer sb = new StringBuffer (file.length() + 5); sb.append ("jar:"); sb.append (fi...
public ParameterModeHolder(ParameterMode initialValue)
public ParameterModeHolder()
public ParameterModeHolder(ParameterMode initialValue) { value = initialValue; }
value = initialValue;
public ParameterModeHolder(ParameterMode initialValue) { value = initialValue; }
{
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ...
}
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ...
{
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ...
}
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ...
{
public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { re...
}
public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { re...
StringBuffer buf = new StringBuffer(getClass().getName());
StringBuffer buf = new StringBuffer("apply-templates");
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); boolean o = false; if (select != null) { buf.append("select="); buf.append(select); o = true; } if (mode != null) { if (o) { buf.append(...
current = null;
public int getLength() { int retval = 0; NodeIterator iter = createIterator(); while (iter.nextNode() != null) { retval++; } return retval; }
return current.previousNode ();
Node ret = current.previousNode (); current = null; return ret;
public Node item(int index) { if (current == null) { current = createIterator(); lastIndex = -1; } // last node or before? go backwards if (index <= lastIndex) { while (index != lastIndex) { current.previousNode (); lastIndex--; ...
return current.nextNode ();
Node ret = current.nextNode (); current = null; return ret;
public Node item(int index) { if (current == null) { current = createIterator(); lastIndex = -1; } // last node or before? go backwards if (index <= lastIndex) { while (index != lastIndex) { current.previousNode (); lastIndex--; ...
throw new DomEx(DomEx.WRONG_DOCUMENT_ERR,
throw new DomDOMException(DOMException.WRONG_DOCUMENT_ERR,
public Node appendChild(Node newChild) { try { DomNode child = (DomNode) newChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // Append all nodes in the fragment to this node for (DomNode ctx = child.first; ctx != null; ctx = ctx.next) { ...
throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR,
throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR,
private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D...
throw new DomEx(DomEx.HIERARCHY_REQUEST_ERR, "can't make ancestor into a child", this, 0);
throw new DomDOMException(DOMException.HIERARCHY_REQUEST_ERR, "can't make ancestor into a child", this, 0);
private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D...
throw new DomEx(DomEx.WRONG_DOCUMENT_ERR,
throw new DomDOMException(DOMException.WRONG_DOCUMENT_ERR,
private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D...
throw new DomEx(DomEx.HIERARCHY_REQUEST_ERR, "can't append " + nodeTypeToString(childNodeType) + " to node of type " + nodeTypeToString(nodeType),
throw new DomDOMException(DOMException.HIERARCHY_REQUEST_ERR, "can't append " + nodeTypeToString(childNodeType) + " to node of type " + nodeTypeToString(nodeType),
private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D...
throw new DomEx(DomEx.NOT_SUPPORTED_ERR,
throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR,
public Event createEvent(String eventType) { eventType = eventType.toLowerCase(); if ("mutationevents".equals(eventType)) { return new DomEvent.DomMutationEvent(null); } if ("htmlevents".equals(eventType) || "events".equals(eventType) || "user-events".equals(eventType)...
throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0);
throw new DomDOMException(DOMException.NOT_FOUND_ERR, null, ref, 0);
public Node insertBefore(Node newChild, Node refChild) { if (refChild == null) { return appendChild(newChild); } try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // ...
throw new DomEx(DomEx.HIERARCHY_REQUEST_ERR, "can't insert node before itself", ref, 0);
throw new DomDOMException(DOMException.HIERARCHY_REQUEST_ERR, "can't insert node before itself", ref, 0);
public Node insertBefore(Node newChild, Node refChild) { if (refChild == null) { return appendChild(newChild); } try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // ...
throw new DomEx(DomEx.WRONG_DOCUMENT_ERR,
throw new DomDOMException(DOMException.WRONG_DOCUMENT_ERR,
public Node insertBefore(Node newChild, Node refChild) { if (refChild == null) { return appendChild(newChild); } try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // ...
throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0);
throw new DomDOMException(DOMException.NOT_FOUND_ERR, null, ref, 0);
public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MOD...
throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR,
throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR,
public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MOD...
throw new DomEx(DomEx.NOT_FOUND_ERR,
throw new DomDOMException(DOMException.NOT_FOUND_ERR,
public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MOD...