bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
DisabledFocusManager() { // TODO } // DisabledFocusManager()
DisabledFocusManager() { // TODO } // DisabledFocusManager()
3,843
public void focusNextComponent(Component component) { // TODO } // focusNextComponent()
public void focusNextComponent(Component component) { // TODO } // focusNextComponent()
3,844
public void focusNextComponent(Component component) { // TODO } // focusNextComponent()
public void focusNextComponent(Component component) { // TODO } // focusNextComponent()
3,845
public void focusPreviousComponent(Component value0) { // TODO } // focusPreviousComponent()
public void focusPreviousComponent(Component value0) { // TODO } // focusPreviousComponent()
3,846
public void focusPreviousComponent(Component value0) { // TODO } // focusPreviousComponent()
public void focusPreviousComponent(Component value0) { // TODO } // focusPreviousComponent()
3,847
public void processKeyEvent(Component component, KeyEvent event) { // TODO } // processKeyEvent()
public void processKeyEvent(Component component, KeyEvent event) { // TODO } // processKeyEvent()
3,848
public void processKeyEvent(Component component, KeyEvent event) { // TODO } // processKeyEvent()
public void processKeyEvent(Component component, KeyEvent event) { // TODO } // processKeyEvent()
3,849
public FocusManager() { // TODO } // FocusManager()
public FocusManager() { // TODO } // FocusManager()
3,850
public FocusManager() { // TODO } // FocusManager()
public FocusManager() { // TODO } // FocusManager()
3,851
public static void disableSwingFocusManager() { // TODO } // disableSwingFocusManager()
public static void disableSwingFocusManager() { // TODO } // disableSwingFocusManager()
3,852
public static void disableSwingFocusManager() { // TODO } // disableSwingFocusManager()
public static void disableSwingFocusManager() { // TODO } // disableSwingFocusManager()
3,853
public static FocusManager getCurrentManager() { return null; // TODO } // getCurrentManager()
public static FocusManager getCurrentManager() { return null; // TODO } // getCurrentManager()
3,854
public static FocusManager getCurrentManager() { return null; // TODO } // getCurrentManager()
public static FocusManager getCurrentManager() { return null; // TODO } // getCurrentManager()
3,855
public static boolean isFocusManagerEnabled() { return false; // TODO } // isFocusManagerEnabled()
public static boolean isFocusManagerEnabled() { return false; // TODO } // isFocusManagerEnabled()
3,856
public static boolean isFocusManagerEnabled() { return false; // TODO } // isFocusManagerEnabled()
public static boolean isFocusManagerEnabled() { return false; // TODO } // isFocusManagerEnabled()
3,857
public static void setCurrentManager(FocusManager manager) { // TODO } // setCurrentManager()
public static void setCurrentManager(FocusManager manager) { // TODO } // setCurrentManager()
3,858
public static void setCurrentManager(FocusManager manager) { // TODO } // setCurrentManager()
public static void setCurrentManager(FocusManager manager) { // TODO } // setCurrentManager()
3,859
public final Object clone(Cloneable object) { testInited(); final VmClassType< ? > objectClass = VmMagic.getObjectType(object); final Address objectPtr = ObjectReference.fromObject(object) .toAddress(); final int size; if (objectClass.isArray()) { final int slotSize = Unsafe.getCurrentProcessor().getArchitecture() .getReferenceSize(); final VmArrayClass< ? > arrayClass = (VmArrayClass< ? >) objectClass; final int length = objectPtr.loadInt(Offset .fromIntSignExtend(VmArray.LENGTH_OFFSET * slotSize)); final int elemSize = arrayClass.getComponentType().getTypeSize(); size = (VmArray.DATA_OFFSET * slotSize) * (length * elemSize); } else { final VmNormalClass< ? > normalClass = (VmNormalClass) objectClass; size = normalClass.getObjectSize(); } final Object newObj = allocObject(objectClass, size); helper.copy(objectPtr, ObjectReference.fromObject(newObj).toAddress(), Extent.fromIntZeroExtend(size)); return newObj; }
public final Object clone(Cloneable object) { testInited(); final VmClassType< ? > objectClass = VmMagic.getObjectType(object); final Address objectPtr = ObjectReference.fromObject(object) .toAddress(); final int size; if (objectClass.isArray()) { final int slotSize = Unsafe.getCurrentProcessor().getArchitecture() .getReferenceSize(); final VmArrayClass< ? > arrayClass = (VmArrayClass< ? >) objectClass; final int length = objectPtr.loadInt(Offset .fromIntSignExtend(VmArray.LENGTH_OFFSET * slotSize)); final int elemSize = arrayClass.getComponentType().getTypeSize(); size = (VmArray.DATA_OFFSET * slotSize) * (length * elemSize); } else { final VmNormalClass< ? > normalClass = (VmNormalClass<?>) objectClass; size = normalClass.getObjectSize(); } final Object newObj = allocObject(objectClass, size); helper.copy(objectPtr, ObjectReference.fromObject(newObj).toAddress(), Extent.fromIntZeroExtend(size)); return newObj; }
3,860
public final Object newInstance(VmType< ? > cls) { // cls.link(); cls.initialize(); return newInstance(cls, ((VmNormalClass< ? >) cls).getObjectSize()); }
public final Object newInstance(VmType< ? > cls) { // cls.link(); return newInstance(cls, ((VmNormalClass< ? >) cls).getObjectSize()); }
3,861
public NegativeArraySizeException(String s) { super(s); }
public NegativeArraySizeException(String s) { super(s); }
3,862
public OutOfMemoryError() { super(); }
public OutOfMemoryError() { super(); }
3,863
public HostArgument(String name, String description) { super(name, description); }
public HostArgument(String name, String description) { super(name, description); }
3,864
public BasicComboBoxEditor() { editor = new JTextField(); editor.setBorder(new EmptyBorder(1, 1, 1, 1)); }
public BasicComboBoxEditor() { editor = new JTextField(); editor.setBorder(null); editor.setColumns(9); }
3,866
public Component getTopComponentAt(int x, int y) { if(desktopFrame == null){ //no AWT yet, drop the event return null; } Component comp = desktopFrame.getDesktop().getComponentAt(x,y); if(comp instanceof SwingBaseWindow){ SwingBaseWindow base = (SwingBaseWindow) comp; Window w = base.getAWTComponent(); if(w instanceof Frame){ MenuBar mb = ((Frame)w).getMenuBar(); if(mb != null){ JMenuBar jmb = ((SwingMenuBarPeer)mb.getPeer()).jComponent; Point p = new Point(x,y); SwingUtilities.convertPointFromScreen(p, jmb); comp = SwingUtilities.getDeepestComponentAt(jmb, p.x, p.y); if(comp != null && (comp != jmb || comp == jmb && jmb.contains(p.x,p.y))){ return comp; } } } Point p = new Point(x,y); SwingUtilities.convertPointFromScreen(p, w); comp = SwingUtilities.getDeepestComponentAt(w, p.x, p.y); if(comp == w){ p = new Point(x,y); SwingUtilities.convertPointFromScreen(p, base); comp = SwingUtilities.getDeepestComponentAt(base, p.x, p.y); } } else { comp = super.getTopComponentAt(x, y); SwingFrame sfp = (SwingFrame) SwingUtilities.getAncestorOfClass( SwingFrame.class, comp); if (sfp != null) { Rectangle r = sfp.getBounds(); Insets ins = sfp.getSwingPeer().getInsets(); r.x = r.x + ins.left; r.y = r.y + ins.top; r.width = r.width - ins.left - ins.right; r.height = r.height - ins.top - ins.bottom; if (r.contains(x, y)) { Component c = sfp.getAWTComponent().findComponentAt(x, y); if (c != null) { comp = c; } } } } return comp; }
public Component getTopComponentAt(int x, int y) { if(desktopFrame == null){ //no AWT yet, drop the event return null; } Component comp = desktopFrame.getDesktop().getComponentAt(x,y); if(comp instanceof SwingBaseWindow){ SwingBaseWindow base = (SwingBaseWindow) comp; Window w = base.getAWTComponent(); if(w instanceof Frame){ MenuBar mb = ((Frame)w).getMenuBar(); if(mb != null){ JMenuBar jmb = ((SwingMenuBarPeer)mb.getPeer()).jComponent; Point p = new Point(x,y); SwingUtilities.convertPointFromScreen(p, jmb); comp = SwingUtilities.getDeepestComponentAt(jmb, p.x, p.y); if(comp != null && (comp != jmb || comp == jmb && jmb.contains(p.x,p.y))){ return comp; } } } Point p = new Point(x,y); SwingUtilities.convertPointFromScreen(p, w); comp = SwingUtilities.getDeepestComponentAt(w, p.x, p.y); if(comp == w){ p = new Point(x,y); SwingUtilities.convertPointFromScreen(p, base); comp = SwingUtilities.getDeepestComponentAt(base, p.x, p.y); } } else { comp = super.getTopComponentAt(x, y); SwingFrame sfp = (SwingFrame) SwingUtilities.getAncestorOfClass( SwingFrame.class, comp); if (sfp != null) { Rectangle r = sfp.getBounds(); Insets ins = sfp.getSwingPeer().getInsets(); r.x = r.x + ins.left; r.y = r.y + ins.top; r.width = r.width - ins.left - ins.right; r.height = r.height - ins.top - ins.bottom; if (r.contains(x, y)) { Component c = sfp.getAWTComponent().findComponentAt(x, y); if (c != null) { comp = c; } } } } return comp; }
3,867
public Component getTopComponentAt(int x, int y) { if(desktopFrame == null){ //no AWT yet, drop the event return null; } Component comp = desktopFrame.getDesktop().getComponentAt(x,y); if(comp instanceof SwingBaseWindow){ SwingBaseWindow base = (SwingBaseWindow) comp; Window w = base.getAWTComponent(); if(w instanceof Frame){ MenuBar mb = ((Frame)w).getMenuBar(); if(mb != null){ JMenuBar jmb = ((SwingMenuBarPeer)mb.getPeer()).jComponent; Point p = new Point(x,y); SwingUtilities.convertPointFromScreen(p, jmb); comp = SwingUtilities.getDeepestComponentAt(jmb, p.x, p.y); if(comp != null && (comp != jmb || comp == jmb && jmb.contains(p.x,p.y))){ return comp; } } } Point p = new Point(x,y); SwingUtilities.convertPointFromScreen(p, w); comp = SwingUtilities.getDeepestComponentAt(w, p.x, p.y); if(comp == w){ p = new Point(x,y); SwingUtilities.convertPointFromScreen(p, base); comp = SwingUtilities.getDeepestComponentAt(base, p.x, p.y); } } else { comp = super.getTopComponentAt(x, y); SwingFrame sfp = (SwingFrame) SwingUtilities.getAncestorOfClass( SwingFrame.class, comp); if (sfp != null) { Rectangle r = sfp.getBounds(); Insets ins = sfp.getSwingPeer().getInsets(); r.x = r.x + ins.left; r.y = r.y + ins.top; r.width = r.width - ins.left - ins.right; r.height = r.height - ins.top - ins.bottom; if (r.contains(x, y)) { Component c = sfp.getAWTComponent().findComponentAt(x, y); if (c != null) { comp = c; } } } } return comp; }
public Component getTopComponentAt(int x, int y) { if(desktopFrame == null){ //no AWT yet, drop the event return null; } Component comp = desktopFrame.getDesktop().getComponentAt(x,y); if(comp instanceof SwingBaseWindow){ SwingBaseWindow base = (SwingBaseWindow) comp; Window w = base.getAWTComponent(); if(w instanceof Frame){ MenuBar mb = ((Frame)w).getMenuBar(); if(mb != null){ JMenuBar jmb = ((SwingMenuBarPeer)mb.getPeer()).jComponent; Point p = new Point(x,y); SwingUtilities.convertPointFromScreen(p, jmb); comp = SwingUtilities.getDeepestComponentAt(jmb, p.x, p.y); if(comp != null && (comp != jmb || comp == jmb && jmb.contains(p.x,p.y))){ return comp; } } } Point p = new Point(x,y); SwingUtilities.convertPointFromScreen(p, w); comp = SwingUtilities.getDeepestComponentAt(w, p.x, p.y); if(comp == w){ p = new Point(x,y); SwingUtilities.convertPointFromScreen(p, base); comp = SwingUtilities.getDeepestComponentAt(base, p.x, p.y); } } else { comp = super.getTopComponentAt(x, y); SwingFrame sfp = (SwingFrame) SwingUtilities.getAncestorOfClass( SwingFrame.class, comp); if (sfp != null) { Rectangle r = sfp.getBounds(); Insets ins = sfp.getSwingPeer().getInsets(); r.x = r.x + ins.left; r.y = r.y + ins.top; r.width = r.width - ins.left - ins.right; r.height = r.height - ins.top - ins.bottom; if (r.contains(x, y)) { Component c = sfp.getAWTComponent().findComponentAt(x, y); if (c != null) { comp = c; } } } } return comp; }
3,868
public boolean contains(double x, double y) { double rx = getWidth() / 2; double ry = getHeight() / 2; double tx = (x - getCenterX()) / rx; double ty = (y - getCenterY()) / ry; return tx * tx + ty * ty <= 1.0; }
public boolean contains(double x, double y) { double rx = getWidth() / 2; double ry = getHeight() / 2; double tx = (x - getCenterX()) / rx; double ty = (y - getCenterY()) / ry; return tx * tx + ty * ty <= 1.0; }
3,869
public boolean intersects(double x, double y, double w, double h) { // fixme return false; }
Rectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; Rectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; publicRectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; booleanRectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; intersects(doubleRectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; x,Rectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; doubleRectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; y,Rectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; doubleRectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; w,Rectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; doubleRectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; h)Rectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; Rectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; { //Rectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; fixme returnRectangle2D r = new Rectangle2D.Double(x, y, w, h); if (! r.intersects(getX(), getY(), getWidth(), getHeight())) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Line2D l1 = new Line2D.Double(getX(), getY() + (getHeight() / 2), getX() + getWidth(), getY() + (getHeight() / 2)); Line2D l2 = new Line2D.Double(getX() + (getWidth() / 2), getY(), getX() + (getWidth() / 2), getY() + getHeight()); if (l1.intersects(r) || l2.intersects(r)) return true; false; }
3,870
public void run() { if (logTimers) System.out.println("javax.swing.Timer -> queueEvent()"); queueEvent(); if ( ! repeats) task = null; }
public void run() { if (logTimers) System.out.println("javax.swing.Timer -> queueEvent()"); queueEvent(); if ( ! repeats) task = null; }
3,871
public boolean shouldScroll(int direction) { int value; if (slider.getOrientation() == JSlider.HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (direction == POSITIVE_SCROLL) return (value > slider.getValue()); else return (value < slider.getValue()); }
public boolean shouldScroll(int direction) { int value; if (slider.getOrientation() == JSlider.HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (direction == POSITIVE_SCROLL) return value > slider.getValue(); else return (value < slider.getValue()); }
3,874
public boolean shouldScroll(int direction) { int value; if (slider.getOrientation() == JSlider.HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (direction == POSITIVE_SCROLL) return (value > slider.getValue()); else return (value < slider.getValue()); }
public boolean shouldScroll(int direction) { int value; if (slider.getOrientation() == JSlider.HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (direction == POSITIVE_SCROLL) return (value > slider.getValue()); else return value < slider.getValue(); }
3,875
protected void calculateLabelRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { labelRect.x = contentRect.x; labelRect.y = tickRect.y + tickRect.height; labelRect.width = contentRect.width; labelRect.height = getHeightOfTallestLabel(); } else { labelRect.x = tickRect.x + tickRect.width; labelRect.y = contentRect.y; labelRect.width = getWidthOfWidestLabel(); labelRect.height = contentRect.height; } }
protected void calculateLabelRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { labelRect.x = contentRect.x; labelRect.y = tickRect.y + tickRect.height; labelRect.width = contentRect.width; labelRect.height = getHeightOfTallestLabel(); } else { labelRect.x = tickRect.x + tickRect.width; labelRect.y = contentRect.y; labelRect.width = getWidthOfWidestLabel(); labelRect.height = contentRect.height; } }
3,876
protected void calculateLabelRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { labelRect.x = contentRect.x; labelRect.y = tickRect.y + tickRect.height; labelRect.width = contentRect.width; labelRect.height = getHeightOfTallestLabel(); } else { labelRect.x = tickRect.x + tickRect.width; labelRect.y = contentRect.y; labelRect.width = getWidthOfWidestLabel(); labelRect.height = contentRect.height; } }
protected void calculateLabelRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { labelRect.x = contentRect.x; labelRect.y = tickRect.y + tickRect.height; labelRect.width = contentRect.width; labelRect.height = getHeightOfTallestLabel(); } else { labelRect.x = tickRect.x + tickRect.width; labelRect.y = contentRect.y; labelRect.width = getWidthOfWidestLabel(); labelRect.height = contentRect.height; } }
3,877
protected void calculateLabelRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { labelRect.x = contentRect.x; labelRect.y = tickRect.y + tickRect.height; labelRect.width = contentRect.width; labelRect.height = getHeightOfTallestLabel(); } else { labelRect.x = tickRect.x + tickRect.width; labelRect.y = contentRect.y; labelRect.width = getWidthOfWidestLabel(); labelRect.height = contentRect.height; } }
protected void calculateLabelRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { labelRect.x = contentRect.x; labelRect.y = tickRect.y + tickRect.height; labelRect.width = contentRect.width; labelRect.height = getHeightOfTallestLabel(); } else { labelRect.x = tickRect.x + tickRect.width; labelRect.y = contentRect.y; labelRect.width = getWidthOfWidestLabel(); labelRect.height = contentRect.height; } }
3,878
protected void calculateThumbLocation() { int value = slider.getValue(); if (slider.getOrientation() == JSlider.HORIZONTAL) { thumbRect.x = xPositionForValue(value) - thumbRect.width / 2; thumbRect.y = trackRect.y; } else { thumbRect.x = trackRect.x; thumbRect.y = yPositionForValue(value) - thumbRect.height / 2; } }
protected void calculateThumbLocation() { int value = slider.getValue(); if (slider.getOrientation() == JSlider.HORIZONTAL) { thumbRect.x = xPositionForValue(value) - thumbRect.width / 2; thumbRect.y = trackRect.y + 1; } else { thumbRect.x = trackRect.x; thumbRect.y = yPositionForValue(value) - thumbRect.height / 2; } }
3,880
protected void calculateThumbLocation() { int value = slider.getValue(); if (slider.getOrientation() == JSlider.HORIZONTAL) { thumbRect.x = xPositionForValue(value) - thumbRect.width / 2; thumbRect.y = trackRect.y; } else { thumbRect.x = trackRect.x; thumbRect.y = yPositionForValue(value) - thumbRect.height / 2; } }
protected void calculateThumbLocation() { int value = slider.getValue(); if (slider.getOrientation() == JSlider.HORIZONTAL) { thumbRect.x = xPositionForValue(value) - thumbRect.width / 2; thumbRect.y = trackRect.y; } else { thumbRect.x = trackRect.x; thumbRect.y = yPositionForValue(value) - thumbRect.height / 2; } }
3,881
protected void calculateThumbSize() { Dimension d = getThumbSize(); thumbRect.width = d.width; thumbRect.height = d.height; if (slider.getOrientation() == JSlider.HORIZONTAL) thumbRect.y = trackRect.y; else thumbRect.x = trackRect.x; }
protected void calculateThumbSize() { Dimension d = getThumbSize(); thumbRect.width = d.width; thumbRect.height = d.height; if (slider.getOrientation() == JSlider.HORIZONTAL) thumbRect.y = trackRect.y; else thumbRect.x = trackRect.x; }
3,882
protected void calculateTickRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { tickRect.x = trackRect.x; tickRect.y = trackRect.y + trackRect.height; tickRect.width = trackRect.width; tickRect.height = (slider.getPaintTicks() ? getTickLength() : 0); if (tickRect.y + tickRect.height > contentRect.y + contentRect.height) tickRect.height = contentRect.y + contentRect.height - tickRect.y; } else { tickRect.x = trackRect.x + trackRect.width; tickRect.y = trackRect.y; tickRect.width = (slider.getPaintTicks() ? getTickLength() : 0); tickRect.height = trackRect.height; if (tickRect.x + tickRect.width > contentRect.x + contentRect.width) tickRect.width = contentRect.x + contentRect.width - tickRect.x; } }
protected void calculateTickRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { tickRect.x = trackRect.x; tickRect.y = trackRect.y + trackRect.height; tickRect.width = trackRect.width; tickRect.height = (slider.getPaintTicks() ? getTickLength() : 0); if (tickRect.y + tickRect.height > contentRect.y + contentRect.height) tickRect.height = contentRect.y + contentRect.height - tickRect.y; } else { tickRect.x = trackRect.x + trackRect.width; tickRect.y = trackRect.y; tickRect.width = (slider.getPaintTicks() ? getTickLength() : 0); tickRect.height = trackRect.height; if (tickRect.x + tickRect.width > contentRect.x + contentRect.width) tickRect.width = contentRect.x + contentRect.width - tickRect.x; } }
3,883
protected void calculateTickRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { tickRect.x = trackRect.x; tickRect.y = trackRect.y + trackRect.height; tickRect.width = trackRect.width; tickRect.height = (slider.getPaintTicks() ? getTickLength() : 0); if (tickRect.y + tickRect.height > contentRect.y + contentRect.height) tickRect.height = contentRect.y + contentRect.height - tickRect.y; } else { tickRect.x = trackRect.x + trackRect.width; tickRect.y = trackRect.y; tickRect.width = (slider.getPaintTicks() ? getTickLength() : 0); tickRect.height = trackRect.height; if (tickRect.x + tickRect.width > contentRect.x + contentRect.width) tickRect.width = contentRect.x + contentRect.width - tickRect.x; } }
protected void calculateTickRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { tickRect.x = trackRect.x; tickRect.y = trackRect.y + trackRect.height; tickRect.width = trackRect.width; tickRect.height = (slider.getPaintTicks() ? getTickLength() : 0); if (tickRect.y + tickRect.height > contentRect.y + contentRect.height) tickRect.height = contentRect.y + contentRect.height - tickRect.y; } else { tickRect.x = trackRect.x + trackRect.width; tickRect.y = trackRect.y; tickRect.width = (slider.getPaintTicks() ? getTickLength() : 0); tickRect.height = trackRect.height; if (tickRect.x + tickRect.width > contentRect.x + contentRect.width) tickRect.width = contentRect.x + contentRect.width - tickRect.x; } }
3,884
public void paintTrack(Graphics g) { Color saved_color = g.getColor(); int width; int height; Point a = new Point(trackRect.x, trackRect.y); Point b = new Point(a); Point c = new Point(a); Point d = new Point(a); if (slider.getOrientation() == JSlider.HORIZONTAL) { width = trackRect.width; height = (thumbRect.height / 4 == 0) ? 1 : thumbRect.height / 4; a.translate(0, (trackRect.height / 2) - (height / 2)); b.translate(0, (trackRect.height / 2) + (height / 2)); c.translate(trackRect.width, (trackRect.height / 2) + (height / 2)); d.translate(trackRect.width, (trackRect.height / 2) - (height / 2)); } else { width = (thumbRect.width / 4 == 0) ? 1 : thumbRect.width / 4; height = trackRect.height; a.translate((trackRect.width / 2) - (width / 2), 0); b.translate((trackRect.width / 2) - (width / 2), trackRect.height); c.translate((trackRect.width / 2) + (width / 2), trackRect.height); d.translate((trackRect.width / 2) + (width / 2), 0); } g.setColor(Color.GRAY); g.fillRect(a.x, a.y, width, height); g.setColor(getHighlightColor()); g.drawLine(b.x, b.y, c.x, c.y); g.drawLine(c.x, c.y, d.x, d.y); g.setColor(getShadowColor()); g.drawLine(b.x, b.y, a.x, a.y); g.drawLine(a.x, a.y, d.x, d.y); g.setColor(saved_color); }
public void paintTrack(Graphics g) { Color saved_color = g.getColor(); int width; int height; Point a = new Point(trackRect.x, trackRect.y + 1); Point b = new Point(a); Point c = new Point(a); Point d = new Point(a); if (slider.getOrientation() == JSlider.HORIZONTAL) { width = trackRect.width; height = (thumbRect.height / 4 == 0) ? 1 : thumbRect.height / 4; a.translate(0, (trackRect.height / 2) - (height / 2)); b.translate(0, (trackRect.height / 2) + (height / 2)); c.translate(trackRect.width, (trackRect.height / 2) + (height / 2)); d.translate(trackRect.width, (trackRect.height / 2) - (height / 2)); } else { width = (thumbRect.width / 4 == 0) ? 1 : thumbRect.width / 4; height = trackRect.height; a.translate((trackRect.width / 2) - (width / 2), 0); b.translate((trackRect.width / 2) - (width / 2), trackRect.height); c.translate((trackRect.width / 2) + (width / 2), trackRect.height); d.translate((trackRect.width / 2) + (width / 2), 0); } g.setColor(Color.GRAY); g.fillRect(a.x, a.y, width, height); g.setColor(getHighlightColor()); g.drawLine(b.x, b.y, c.x, c.y); g.drawLine(c.x, c.y, d.x, d.y); g.setColor(getShadowColor()); g.drawLine(b.x, b.y, a.x, a.y); g.drawLine(a.x, a.y, d.x, d.y); g.setColor(saved_color); }
3,886
public int valueForXPosition(int xPos) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.width; int value; // If the length is 0, you shouldn't be able to even see where the slider // is. This really shouldn't ever happen, but just in case, we'll return // the middle. if (len == 0) return ((max - min) / 2); if (! drawInverted()) value = ((xPos - trackRect.x) * (max - min) / len + min); else value = ((len - (xPos - trackRect.x)) * (max - min) / len + min); // If this isn't a legal value, then we'll have to move to one now. if (value > max) value = max; else if (value < min) value = min; return value; }
public int valueForXPosition(int xPos) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.width; int value; // If the length is 0, you shouldn't be able to even see where the slider // is. This really shouldn't ever happen, but just in case, we'll return // the middle. if (len == 0) return (max - min) / 2; if (! drawInverted()) value = ((xPos - trackRect.x) * (max - min) / len + min); else value = ((len - (xPos - trackRect.x)) * (max - min) / len + min); // If this isn't a legal value, then we'll have to move to one now. if (value > max) value = max; else if (value < min) value = min; return value; }
3,887
public int valueForXPosition(int xPos) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.width; int value; // If the length is 0, you shouldn't be able to even see where the slider // is. This really shouldn't ever happen, but just in case, we'll return // the middle. if (len == 0) return ((max - min) / 2); if (! drawInverted()) value = ((xPos - trackRect.x) * (max - min) / len + min); else value = ((len - (xPos - trackRect.x)) * (max - min) / len + min); // If this isn't a legal value, then we'll have to move to one now. if (value > max) value = max; else if (value < min) value = min; return value; }
public int valueForXPosition(int xPos) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.width; int value; // If the length is 0, you shouldn't be able to even see where the slider // is. This really shouldn't ever happen, but just in case, we'll return // the middle. if (len == 0) return ((max - min) / 2); if (! drawInverted()) value = (xPos - trackRect.x) * (max - min) / len + min; else value = ((len - (xPos - trackRect.x)) * (max - min) / len + min); // If this isn't a legal value, then we'll have to move to one now. if (value > max) value = max; else if (value < min) value = min; return value; }
3,888
public int valueForXPosition(int xPos) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.width; int value; // If the length is 0, you shouldn't be able to even see where the slider // is. This really shouldn't ever happen, but just in case, we'll return // the middle. if (len == 0) return ((max - min) / 2); if (! drawInverted()) value = ((xPos - trackRect.x) * (max - min) / len + min); else value = ((len - (xPos - trackRect.x)) * (max - min) / len + min); // If this isn't a legal value, then we'll have to move to one now. if (value > max) value = max; else if (value < min) value = min; return value; }
public int valueForXPosition(int xPos) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.width; int value; // If the length is 0, you shouldn't be able to even see where the slider // is. This really shouldn't ever happen, but just in case, we'll return // the middle. if (len == 0) return ((max - min) / 2); if (! drawInverted()) value = ((xPos - trackRect.x) * (max - min) / len + min); else value = (len - (xPos - trackRect.x)) * (max - min) / len + min; // If this isn't a legal value, then we'll have to move to one now. if (value > max) value = max; else if (value < min) value = min; return value; }
3,889
public int valueForYPosition(int yPos) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.height; int value; // If the length is 0, you shouldn't be able to even see where the slider // is. This really shouldn't ever happen, but just in case, we'll return // the middle. if (len == 0) return ((max - min) / 2); if (! drawInverted()) value = ((len - (yPos - trackRect.y)) * (max - min) / len + min); else value = ((yPos - trackRect.y) * (max - min) / len + min); // If this isn't a legal value, then we'll have to move to one now. if (value > max) value = max; else if (value < min) value = min; return value; }
public int valueForYPosition(int yPos) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.height; int value; // If the length is 0, you shouldn't be able to even see where the slider // is. This really shouldn't ever happen, but just in case, we'll return // the middle. if (len == 0) return (max - min) / 2; if (! drawInverted()) value = ((len - (yPos - trackRect.y)) * (max - min) / len + min); else value = ((yPos - trackRect.y) * (max - min) / len + min); // If this isn't a legal value, then we'll have to move to one now. if (value > max) value = max; else if (value < min) value = min; return value; }
3,890
public int valueForYPosition(int yPos) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.height; int value; // If the length is 0, you shouldn't be able to even see where the slider // is. This really shouldn't ever happen, but just in case, we'll return // the middle. if (len == 0) return ((max - min) / 2); if (! drawInverted()) value = ((len - (yPos - trackRect.y)) * (max - min) / len + min); else value = ((yPos - trackRect.y) * (max - min) / len + min); // If this isn't a legal value, then we'll have to move to one now. if (value > max) value = max; else if (value < min) value = min; return value; }
public int valueForYPosition(int yPos) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.height; int value; // If the length is 0, you shouldn't be able to even see where the slider // is. This really shouldn't ever happen, but just in case, we'll return // the middle. if (len == 0) return ((max - min) / 2); if (! drawInverted()) value = (len - (yPos - trackRect.y)) * (max - min) / len + min; else value = ((yPos - trackRect.y) * (max - min) / len + min); // If this isn't a legal value, then we'll have to move to one now. if (value > max) value = max; else if (value < min) value = min; return value; }
3,891
public int valueForYPosition(int yPos) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.height; int value; // If the length is 0, you shouldn't be able to even see where the slider // is. This really shouldn't ever happen, but just in case, we'll return // the middle. if (len == 0) return ((max - min) / 2); if (! drawInverted()) value = ((len - (yPos - trackRect.y)) * (max - min) / len + min); else value = ((yPos - trackRect.y) * (max - min) / len + min); // If this isn't a legal value, then we'll have to move to one now. if (value > max) value = max; else if (value < min) value = min; return value; }
public int valueForYPosition(int yPos) { int min = slider.getMinimum(); int max = slider.getMaximum(); int len = trackRect.height; int value; // If the length is 0, you shouldn't be able to even see where the slider // is. This really shouldn't ever happen, but just in case, we'll return // the middle. if (len == 0) return ((max - min) / 2); if (! drawInverted()) value = ((len - (yPos - trackRect.y)) * (max - min) / len + min); else value = (yPos - trackRect.y) * (max - min) / len + min; // If this isn't a legal value, then we'll have to move to one now. if (value > max) value = max; else if (value < min) value = min; return value; }
3,892
public synchronized void write (byte[] buf, int offset, int len) throws IOException { out.write(buf, offset, len); written += len; }
public synchronized void write (byte[] buf, int offset, int len) throws IOException { out.write(buf, offset, len); written += len; }
3,894
public synchronized void write (byte[] buf, int offset, int len) throws IOException { out.write(buf, offset, len); written += len; }
public synchronized void write (byte[] buf, int offset, int len) throws IOException { out.write(buf, offset, len); written += len; }
3,895
public UnaryQuad(int address, IRBasicBlock block, int lhsIndex, int operation, int varIndex) { super(address, block, lhsIndex); this.operation = operation; this.operand = getOperand(varIndex); refs = new Operand[] { operand }; }
public UnaryQuad(int address, IRBasicBlock block, int lhsIndex, int operation, int varIndex) { super(address, block, lhsIndex); this.operation = operation; this.operand = getOperand(varIndex); refs = new Operand[] { operand }; }
3,896
public void doPass2(BootableHashMap liveVariables) { operand = operand.simplify(); if (operand instanceof Variable) { Variable v = (Variable) operand; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } }
public void doPass2(BootableHashMap liveVariables) { operand = operand.simplify(); if (operand instanceof Variable) { Variable v = (Variable) operand; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } }
3,897
private Quad foldConstants() { if(operand instanceof Constant){ Constant c = (Constant) operand; switch (operation) { case I2L: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.i2l()); case I2F: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.i2f()); case I2D: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.i2d()); case L2I: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.l2i()); case L2F: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.l2f()); case L2D: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.l2d()); case F2I: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.f2i()); case F2L: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.f2l()); case F2D: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.f2d()); case D2I: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.d2i()); case D2L: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.d2l()); case D2F: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.d2f()); case I2B: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.i2b()); case I2C: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.i2c()); case I2S: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.i2s()); case INEG: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.iNeg()); case LNEG: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.lNeg()); case FNEG: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.fNeg()); case DNEG: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.dNeg()); default: throw new IllegalArgumentException("Don't know how to fold those yet..."); } } return this; }
private Quad foldConstants() { if(operand instanceof Constant){ Constant c = (Constant) operand; switch (operation) { case I2L: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.i2l()); case I2F: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.i2f()); case I2D: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.i2d()); case L2I: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.l2i()); case L2F: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.l2f()); case L2D: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.l2d()); case F2I: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.f2i()); case F2L: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.f2l()); case F2D: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.f2d()); case D2I: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.d2i()); case D2L: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.d2l()); case D2F: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.d2f()); case I2B: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.i2b()); case I2C: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.i2c()); case I2S: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.i2s()); case INEG: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.iNeg()); case LNEG: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.lNeg()); case FNEG: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.fNeg()); case DNEG: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), c.dNeg()); default: throw new IllegalArgumentException("Don't know how to fold those yet..."); } } return this; }
3,898
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
3,899
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
3,900
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
3,901
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
3,902
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
3,903
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
3,904
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
public void generateCode(CodeGenerator cg) { Variable lhs = getLHS(); Location lhsLoc = lhs.getLocation(); if (lhsLoc instanceof RegisterLocation) { RegisterLocation regLoc = (RegisterLocation) lhsLoc; Object lhsReg = regLoc.getRegister(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsReg, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { // this probably won't happen, is should be folded earlier Constant con = (Constant) operand; cg.generateCodeFor(this, lhsReg, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else if (lhsLoc instanceof StackLocation) { StackLocation lhsStackLoc = (StackLocation) lhsLoc; int lhsDisp = lhsStackLoc.getDisplacement(); if (operand instanceof Variable) { Variable var = (Variable) operand; Location varLoc = var.getLocation(); if (varLoc instanceof RegisterLocation) { RegisterLocation vregLoc = (RegisterLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, vregLoc.getRegister()); } else if (varLoc instanceof StackLocation) { StackLocation stackLoc = (StackLocation) varLoc; cg.generateCodeFor(this, lhsDisp, operation, stackLoc.getDisplacement()); } else { throw new IllegalArgumentException("Unknown location: " + varLoc); } } else if (operand instanceof Constant) { Constant con = (Constant) operand; cg.generateCodeFor(this, lhsDisp, operation, con); } else { throw new IllegalArgumentException("Unknown operand: " + operand); } } else { throw new IllegalArgumentException("Unknown location: " + lhsLoc); } }
3,905
public Operand getOperand() { return operand; }
public Operand getOperand() { return operand; }
3,906
public String toString() { return getAddress() + ": " + getLHS().toString() + " = " + OP_MAP[operation - I2L] + " " + operand.toString(); }
public String toString() { return getAddress() + ": " + getLHS().toString() + " = " + OP_MAP[operation - I2L] + " " + operand.toString(); }
3,907
public AssignQuad(int address, IRBasicBlock block, int lhsIndex) { this(address, block, block.getVariables()[lhsIndex]); }
public AssignQuad(int address, IRBasicBlock block, int lhsIndex) { this(address, block, block.getVariables()[lhsIndex]); }
3,908
public int getNativeFD() { NIOSocket socket = (NIOSocket) ((SocketChannelImpl) ch).socket(); return socket.getPlainSocketImpl().getNativeFD(); }
public int getNativeFD() { NIOSocket socket = (NIOSocket) ((SocketChannelImpl) ch).socket(); return socket.getPlainSocketImpl().getNativeFD(); }
3,911
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), DocumentEvent.EventType.INSERT); writeLock(); UndoableEdit undo = content.insertString(offset, text); insertUpdate(event, attributes); writeUnlock(); if (event.modified) fireInsertUpdate(event); if (undo != null) fireUndoableEditUpdate(new UndoableEditEvent(this, undo)); }
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), DocumentEvent.EventType.INSERT); writeLock(); UndoableEdit undo = content.insertString(offset, text); insertUpdate(event, attributes); writeUnlock(); fireInsertUpdate(event); if (undo != null) fireUndoableEditUpdate(new UndoableEditEvent(this, undo)); }
3,912
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); // setup the frame interface panel interfacePanel = new JPanel(); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(intMDI); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); options.add(showMe); connectButton = addOptButton(LangTool.getString("ss.optConnect"), "CONNECT",options,false); applyButton = addOptButton(LangTool.getString("ss.optApply"), "APPLY",options,true); addOptButton(LangTool.getString("ss.optCancel"),"DONE",options); // add the panels to our dialog getContentPane().add(sessionPanel,BorderLayout.CENTER); getContentPane().add(options, BorderLayout.SOUTH); getContentPane().add(interfacePanel,BorderLayout.NORTH); // pack it and center it on the screen pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); // set default selection value as the first row or default session if (sessions.getRowCount() > 0) { int selInterval = 0; for (int x = 0; x < sessions.getRowCount(); x++) { if (((Boolean)ctm.getValueAt(x,2)).booleanValue()) selInterval = x; } sessions.getSelectionModel().setSelectionInterval(selInterval,selInterval); } sessions.requestFocus(); // now show the world what we and they can do this.setVisible(true); }
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); // setup the frame interface panel interfacePanel = new JPanel(); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(intMDI); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); options.add(showMe); connectButton = addOptButton(LangTool.getString("ss.optConnect"), "CONNECT",options,false); applyButton = addOptButton(LangTool.getString("ss.optApply"), "APPLY",options,true); addOptButton(LangTool.getString("ss.optCancel"),"DONE",options); // add the panels to our dialog getContentPane().add(sessionPanel,BorderLayout.CENTER); getContentPane().add(options, BorderLayout.SOUTH); getContentPane().add(interfacePanel,BorderLayout.NORTH); // pack it and center it on the screen pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); // set default selection value as the first row or default session if (sessions.getRowCount() > 0) { int selInterval = 0; for (int x = 0; x < sessions.getRowCount(); x++) { if (((Boolean)ctm.getValueAt(x,2)).booleanValue()) selInterval = x; } sessions.getSelectionModel().setSelectionInterval(selInterval,selInterval); } sessions.requestFocus(); // now show the world what we and they can do this.setVisible(true); }
3,916
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); // setup the frame interface panel interfacePanel = new JPanel(); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(intMDI); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); options.add(showMe); connectButton = addOptButton(LangTool.getString("ss.optConnect"), "CONNECT",options,false); applyButton = addOptButton(LangTool.getString("ss.optApply"), "APPLY",options,true); addOptButton(LangTool.getString("ss.optCancel"),"DONE",options); // add the panels to our dialog getContentPane().add(sessionPanel,BorderLayout.CENTER); getContentPane().add(options, BorderLayout.SOUTH); getContentPane().add(interfacePanel,BorderLayout.NORTH); // pack it and center it on the screen pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); // set default selection value as the first row or default session if (sessions.getRowCount() > 0) { int selInterval = 0; for (int x = 0; x < sessions.getRowCount(); x++) { if (((Boolean)ctm.getValueAt(x,2)).booleanValue()) selInterval = x; } sessions.getSelectionModel().setSelectionInterval(selInterval,selInterval); } sessions.requestFocus(); // now show the world what we and they can do this.setVisible(true); }
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); // setup the frame interface panel interfacePanel = new JPanel(); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(intMDI); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); options.add(showMe); connectButton = addOptButton(LangTool.getString("ss.optConnect"), "CONNECT",options,false); applyButton = addOptButton(LangTool.getString("ss.optApply"), "APPLY",options,true); addOptButton(LangTool.getString("ss.optCancel"),"DONE",options); // add the panels to our dialog getContentPane().add(sessionPanel,BorderLayout.CENTER); getContentPane().add(options, BorderLayout.SOUTH); getContentPane().add(emulOptPanel,BorderLayout.NORTH); // pack it and center it on the screen pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); // set default selection value as the first row or default session if (sessions.getRowCount() > 0) { int selInterval = 0; for (int x = 0; x < sessions.getRowCount(); x++) { if (((Boolean)ctm.getValueAt(x,2)).booleanValue()) selInterval = x; } sessions.getSelectionModel().setSelectionInterval(selInterval,selInterval); } sessions.requestFocus(); // now show the world what we and they can do this.setVisible(true); }
3,917
public DebugGraphics(Graphics graphics) { this.graphics = graphics; }
public DebugGraphics() { this.graphics = graphics; }
3,918
public DebugGraphics(Graphics graphics) { this.graphics = graphics; }
public DebugGraphics(Graphics graphics) { }
3,919
public Request create_request(org.omg.CORBA.Object target, Context context, String method, NVList parameters, NamedValue returns, ExceptionList exceptions, ContextList ctx_list ) { operation = method; LocalRequest rq = new LocalRequest(object, poa, Id); rq.setOperation(method); rq.set_args(parameters); rq.set_result(returns); rq.set_exceptions(exceptions); rq.set_context_list(ctx_list); return rq; }
public Request create_request(org.omg.CORBA.Object target, Context context, String method, NVList parameters, NamedValue returns, ExceptionList exceptions, ContextList ctx_list ) { operation = method; LocalRequest rq = new LocalRequest(object, poa, Id); rq.setOperation(method); rq.set_args(parameters); rq.set_result(returns); rq.set_exceptions(exceptions); rq.set_context_list(ctx_list); return rq; }
3,920
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false); if (handler instanceof dynImpHandler) { // The local request known how to handle it, but the different // method must be called. lr.invoke(); // The encapsulation will inherit orb, endian, charsets, etc. cdrOutput buf = sr.createEncapsulation(); // Write all request parameters to the buffer stream. if (lr.env().exception() != null) { try { UnknownUserException uex = (UnknownUserException) lr.env().exception(); throw new ApplicationException(uex.except.type().id(), uex.except.create_input_stream() ); } catch (BadKind ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } } if (lr.return_value() != null) lr.return_value().write_value(buf); NamedValue a; try { for (int i = 0; i < lr.arguments().count(); i++) { a = lr.arguments().item(i); if (a.flags() == ARG_INOUT.value || a.flags() == ARG_INOUT.value ) { a.value().write_value(buf); } } } catch (Bounds ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } return buf.create_input_stream(); } else { LocalRequest lrq = (LocalRequest) sr.request; return lrq.s_invoke(handler); } } catch (gnuForwardRequest f) { try { return ((ObjectImpl) f.forward_reference)._invoke(f.forward_reference._request( operation, true ) ); } catch (RemarshalException e) { // Never thrown in this place by Classpath implementation. throw new NO_IMPLEMENT(); } } }
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false); if (handler instanceof dynImpHandler) { // The local request known how to handle it, but the different // method must be called. lr.invoke(); // The encapsulation will inherit orb, endian, charsets, etc. cdrOutput buf = sr.createEncapsulation(); // Write all request parameters to the buffer stream. if (lr.env().exception() != null) { try { UnknownUserException uex = (UnknownUserException) lr.env().exception(); throw new ApplicationException(uex.except.type().id(), uex.except.create_input_stream() ); } catch (BadKind ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } } if (lr.return_value() != null) lr.return_value().write_value(buf); NamedValue a; try { for (int i = 0; i < lr.arguments().count(); i++) { a = lr.arguments().item(i); if (a.flags() == ARG_INOUT.value || a.flags() == ARG_INOUT.value ) { a.value().write_value(buf); } } } catch (Bounds ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } return buf.create_input_stream(); } else { LocalRequest lrq = (LocalRequest) sr.request; return lrq.s_invoke(handler); } } catch (gnuForwardRequest f) { try { return ((ObjectImpl) f.forward_reference)._invoke(f.forward_reference._request( operation, true ) ); } catch (RemarshalException e) { // Never thrown in this place by Classpath implementation. throw new NO_IMPLEMENT(); } } }
3,921
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false); if (handler instanceof dynImpHandler) { // The local request known how to handle it, but the different // method must be called. lr.invoke(); // The encapsulation will inherit orb, endian, charsets, etc. cdrOutput buf = sr.createEncapsulation(); // Write all request parameters to the buffer stream. if (lr.env().exception() != null) { try { UnknownUserException uex = (UnknownUserException) lr.env().exception(); throw new ApplicationException(uex.except.type().id(), uex.except.create_input_stream() ); } catch (BadKind ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } } if (lr.return_value() != null) lr.return_value().write_value(buf); NamedValue a; try { for (int i = 0; i < lr.arguments().count(); i++) { a = lr.arguments().item(i); if (a.flags() == ARG_INOUT.value || a.flags() == ARG_INOUT.value ) { a.value().write_value(buf); } } } catch (Bounds ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } return buf.create_input_stream(); } else { LocalRequest lrq = (LocalRequest) sr.request; return lrq.s_invoke(handler); } } catch (gnuForwardRequest f) { try { return ((ObjectImpl) f.forward_reference)._invoke(f.forward_reference._request( operation, true ) ); } catch (RemarshalException e) { // Never thrown in this place by Classpath implementation. throw new NO_IMPLEMENT(); } } }
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false); if (handler instanceof dynImpHandler) { // The local request known how to handle it, but the different // method must be called. lr.invoke(); // The encapsulation will inherit orb, endian, charsets, etc. cdrOutput buf = sr.createEncapsulation(); // Write all request parameters to the buffer stream. if (lr.env().exception() != null) { try { UnknownUserException uex = (UnknownUserException) lr.env().exception(); throw new ApplicationException(uex.except.type().id(), uex.except.create_input_stream() ); } catch (BadKind ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } } if (lr.return_value() != null) lr.return_value().write_value(buf); NamedValue a; try { for (int i = 0; i < lr.arguments().count(); i++) { a = lr.arguments().item(i); if (a.flags() == ARG_INOUT.value || a.flags() == ARG_INOUT.value ) { a.value().write_value(buf); } } } catch (Bounds ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } return buf.create_input_stream(); } else { LocalRequest lrq = (LocalRequest) sr.request; return lrq.s_invoke(handler); } } catch (gnuForwardRequest f) { try { return ((ObjectImpl) f.forward_reference)._invoke(f.forward_reference._request( operation, true ) ); } catch (RemarshalException e) { // Never thrown in this place by Classpath implementation. throw new NO_IMPLEMENT(); } } }
3,922
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false); if (handler instanceof dynImpHandler) { // The local request known how to handle it, but the different // method must be called. lr.invoke(); // The encapsulation will inherit orb, endian, charsets, etc. cdrOutput buf = sr.createEncapsulation(); // Write all request parameters to the buffer stream. if (lr.env().exception() != null) { try { UnknownUserException uex = (UnknownUserException) lr.env().exception(); throw new ApplicationException(uex.except.type().id(), uex.except.create_input_stream() ); } catch (BadKind ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } } if (lr.return_value() != null) lr.return_value().write_value(buf); NamedValue a; try { for (int i = 0; i < lr.arguments().count(); i++) { a = lr.arguments().item(i); if (a.flags() == ARG_INOUT.value || a.flags() == ARG_INOUT.value ) { a.value().write_value(buf); } } } catch (Bounds ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } return buf.create_input_stream(); } else { LocalRequest lrq = (LocalRequest) sr.request; return lrq.s_invoke(handler); } } catch (gnuForwardRequest f) { try { return ((ObjectImpl) f.forward_reference)._invoke(f.forward_reference._request( operation, true ) ); } catch (RemarshalException e) { // Never thrown in this place by Classpath implementation. throw new NO_IMPLEMENT(); } } }
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false); if (handler instanceof dynImpHandler) { // The local request known how to handle it, but the different // method must be called. lr.invoke(); // The encapsulation will inherit orb, endian, charsets, etc. cdrOutput buf = sr.createEncapsulation(); // Write all request parameters to the buffer stream. if (lr.env().exception() != null) { try { UnknownUserException uex = (UnknownUserException) lr.env().exception(); throw new ApplicationException(uex.except.type().id(), uex.except.create_input_stream() ); } catch (BadKind ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } } if (lr.return_value() != null) lr.return_value().write_value(buf); NamedValue a; try { for (int i = 0; i < lr.arguments().count(); i++) { a = lr.arguments().item(i); if (a.flags() == ARG_INOUT.value || a.flags() == ARG_INOUT.value ) { a.value().write_value(buf); } } } catch (Bounds ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } return buf.create_input_stream(); } else { LocalRequest lrq = (LocalRequest) sr.request; return lrq.s_invoke(handler); } } catch (gnuForwardRequest f) { try { return ((ObjectImpl) f.forward_reference)._invoke(f.forward_reference._request( operation, true ) ); } catch (RemarshalException e) { // Never thrown in this place by Classpath implementation. throw new NO_IMPLEMENT(); } } }
3,923
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false); if (handler instanceof dynImpHandler) { // The local request known how to handle it, but the different // method must be called. lr.invoke(); // The encapsulation will inherit orb, endian, charsets, etc. cdrOutput buf = sr.createEncapsulation(); // Write all request parameters to the buffer stream. if (lr.env().exception() != null) { try { UnknownUserException uex = (UnknownUserException) lr.env().exception(); throw new ApplicationException(uex.except.type().id(), uex.except.create_input_stream() ); } catch (BadKind ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } } if (lr.return_value() != null) lr.return_value().write_value(buf); NamedValue a; try { for (int i = 0; i < lr.arguments().count(); i++) { a = lr.arguments().item(i); if (a.flags() == ARG_INOUT.value || a.flags() == ARG_INOUT.value ) { a.value().write_value(buf); } } } catch (Bounds ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } return buf.create_input_stream(); } else { LocalRequest lrq = (LocalRequest) sr.request; return lrq.s_invoke(handler); } } catch (gnuForwardRequest f) { try { return ((ObjectImpl) f.forward_reference)._invoke(f.forward_reference._request( operation, true ) ); } catch (RemarshalException e) { // Never thrown in this place by Classpath implementation. throw new NO_IMPLEMENT(); } } }
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false); if (handler instanceof dynImpHandler) { // The local request known how to handle it, but the different // method must be called. lr.invoke(); // The encapsulation will inherit orb, endian, charsets, etc. cdrOutput buf = sr.createEncapsulation(); // Write all request parameters to the buffer stream. if (lr.env().exception() != null) { try { UnknownUserException uex = (UnknownUserException) lr.env().exception(); throw new ApplicationException(uex.except.type().id(), uex.except.create_input_stream() ); } catch (BadKind ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } } if (lr.return_value() != null) lr.return_value().write_value(buf); NamedValue a; try { for (int i = 0; i < lr.arguments().count(); i++) { a = lr.arguments().item(i); if (a.flags() == ARG_INOUT.value || a.flags() == ARG_INOUT.value ) { a.value().write_value(buf); } } } catch (Bounds ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } return buf.create_input_stream(); } else { LocalRequest lrq = (LocalRequest) sr.request; return lrq.s_invoke(handler); } } catch (gnuForwardRequest f) { try { return ((ObjectImpl) f.forward_reference)._invoke(f.forward_reference._request( operation, true ) ); } catch (RemarshalException e) { // Never thrown in this place by Classpath implementation. throw new NO_IMPLEMENT(); } } }
3,924
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false); if (handler instanceof dynImpHandler) { // The local request known how to handle it, but the different // method must be called. lr.invoke(); // The encapsulation will inherit orb, endian, charsets, etc. cdrOutput buf = sr.createEncapsulation(); // Write all request parameters to the buffer stream. if (lr.env().exception() != null) { try { UnknownUserException uex = (UnknownUserException) lr.env().exception(); throw new ApplicationException(uex.except.type().id(), uex.except.create_input_stream() ); } catch (BadKind ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } } if (lr.return_value() != null) lr.return_value().write_value(buf); NamedValue a; try { for (int i = 0; i < lr.arguments().count(); i++) { a = lr.arguments().item(i); if (a.flags() == ARG_INOUT.value || a.flags() == ARG_INOUT.value ) { a.value().write_value(buf); } } } catch (Bounds ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } return buf.create_input_stream(); } else { LocalRequest lrq = (LocalRequest) sr.request; return lrq.s_invoke(handler); } } catch (gnuForwardRequest f) { try { return ((ObjectImpl) f.forward_reference)._invoke(f.forward_reference._request( operation, true ) ); } catch (RemarshalException e) { // Never thrown in this place by Classpath implementation. throw new NO_IMPLEMENT(); } } }
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false); if (handler instanceof dynImpHandler) { // The local request known how to handle it, but the different // method must be called. lr.invoke(); // The encapsulation will inherit orb, endian, charsets, etc. cdrOutput buf = sr.createEncapsulation(); // Write all request parameters to the buffer stream. if (lr.env().exception() != null) { try { UnknownUserException uex = (UnknownUserException) lr.env().exception(); throw new ApplicationException(uex.except.type().id(), uex.except.create_input_stream() ); } catch (BadKind ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } } if (lr.return_value() != null) lr.return_value().write_value(buf); NamedValue a; try { for (int i = 0; i < lr.arguments().count(); i++) { a = lr.arguments().item(i); if (a.flags() == ARG_INOUT.value || a.flags() == ARG_INOUT.value ) { a.value().write_value(buf); } } } catch (Bounds ex) { InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } return buf.create_input_stream(); } else { LocalRequest lrq = (LocalRequest) sr.request; return lrq.s_invoke(handler); } } catch (gnuForwardRequest f) { try { return ((ObjectImpl) f.forward_reference)._invoke(f.forward_reference._request( operation, true ) ); } catch (RemarshalException e) { // Never thrown in this place by Classpath implementation. throw new NO_IMPLEMENT(); } } }
3,925
public boolean is_equivalent(org.omg.CORBA.Object target, org.omg.CORBA.Object other ) { if (target == other) return true; else if (target instanceof ObjectImpl && other instanceof ObjectImpl) { org.omg.CORBA.portable.Delegate a = null; org.omg.CORBA.portable.Delegate b = null; try { a = ((ObjectImpl) target)._get_delegate(); b = ((ObjectImpl) other)._get_delegate(); } catch (Exception ex) { // Unable to get one of the delegates. return false; } if (a instanceof LocalDelegate && b instanceof LocalDelegate) { byte[] k1 = ((LocalDelegate) a).Id; byte[] k2 = ((LocalDelegate) b).Id; return Arrays.equals(k1, k2); } else return false; } else return false; }
public boolean is_equivalent(org.omg.CORBA.Object target, org.omg.CORBA.Object other ) { if (target == other) return true; else if (target instanceof ObjectImpl && other instanceof ObjectImpl) { org.omg.CORBA.portable.Delegate a = null; org.omg.CORBA.portable.Delegate b = null; try { a = ((ObjectImpl) target)._get_delegate(); b = ((ObjectImpl) other)._get_delegate(); } catch (Exception ex) { // Unable to get one of the delegates. return false; } if (a instanceof LocalDelegate && b instanceof LocalDelegate) { byte[] k1 = ((LocalDelegate) a).Id; byte[] k2 = ((LocalDelegate) b).Id; return Arrays.equals(k1, k2); } else return false; } else return false; }
3,926
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); Dimension viewportInsetsSize = new Dimension(0,0); Dimension columnHeaderSize = new Dimension(0,0); Dimension rowHeaderSize = new Dimension(0,0); Dimension verticalScrollBarSize = new Dimension(0,0); Dimension horizontalScrollBarSize = new Dimension(0,0); Insets insets = sc.getInsets(); Border viewportBorder = sc.getViewportBorder(); Insets viewportInsets = null; if (viewportBorder != null) { viewportInsets = viewportBorder.getBorderInsets(parent); if (viewportInsets != null) viewportInsetsSize.setSize(viewportInsets.left + viewportInsets.right, viewportInsets.top + viewportInsets.bottom); } if (insets != null) insetsSize.setSize(insets.left + insets.right, insets.top + insets.bottom); maybeSetMinimumSize(colHead, columnHeaderSize); maybeSetMinimumSize(rowHead, rowHeaderSize); if (vsbPolicy != VERTICAL_SCROLLBAR_NEVER) maybeSetMinimumSize(vsb, verticalScrollBarSize); if (hsbPolicy != HORIZONTAL_SCROLLBAR_NEVER) maybeSetMinimumSize(hsb, horizontalScrollBarSize); return new Dimension(insetsSize.width + viewportSize.width + viewportInsetsSize.width + rowHeaderSize.width + verticalScrollBarSize.width, insetsSize.height + viewportSize.height + viewportInsetsSize.height + columnHeaderSize.height + horizontalScrollBarSize.height); } } else { return new Dimension(0,0); } }
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); Dimension viewportInsetsSize = new Dimension(0,0); Dimension columnHeaderSize = new Dimension(0,0); Dimension rowHeaderSize = new Dimension(0,0); Dimension verticalScrollBarSize = new Dimension(0,0); Dimension horizontalScrollBarSize = new Dimension(0,0); Insets insets = sc.getInsets(); Border viewportBorder = sc.getViewportBorder(); Insets viewportInsets = null; if (viewportBorder != null) { viewportInsets = viewportBorder.getBorderInsets(parent); if (viewportInsets != null) viewportInsetsSize.setSize(viewportInsets.left + viewportInsets.right, viewportInsets.top + viewportInsets.bottom); } if (insets != null) insetsSize.setSize(insets.left + insets.right, insets.top + insets.bottom); maybeSetMinimumSize(colHead, columnHeaderSize); maybeSetMinimumSize(rowHead, rowHeaderSize); if (vsbPolicy != VERTICAL_SCROLLBAR_NEVER) maybeSetMinimumSize(vsb, verticalScrollBarSize); if (hsbPolicy != HORIZONTAL_SCROLLBAR_NEVER) maybeSetMinimumSize(hsb, horizontalScrollBarSize); return new Dimension(insetsSize.width + viewportSize.width + viewportInsetsSize.width + rowHeaderSize.width + verticalScrollBarSize.width, insetsSize.height + viewportSize.height + viewportInsetsSize.height + columnHeaderSize.height + horizontalScrollBarSize.height); } } else { return new Dimension(0,0); } }
3,930
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); Dimension viewportInsetsSize = new Dimension(0,0); Dimension columnHeaderSize = new Dimension(0,0); Dimension rowHeaderSize = new Dimension(0,0); Dimension verticalScrollBarSize = new Dimension(0,0); Dimension horizontalScrollBarSize = new Dimension(0,0); Insets insets = sc.getInsets(); Border viewportBorder = sc.getViewportBorder(); Insets viewportInsets = null; if (viewportBorder != null) { viewportInsets = viewportBorder.getBorderInsets(parent); if (viewportInsets != null) viewportInsetsSize.setSize(viewportInsets.left + viewportInsets.right, viewportInsets.top + viewportInsets.bottom); } if (insets != null) insetsSize.setSize(insets.left + insets.right, insets.top + insets.bottom); maybeSetMinimumSize(colHead, columnHeaderSize); maybeSetMinimumSize(rowHead, rowHeaderSize); if (vsbPolicy != VERTICAL_SCROLLBAR_NEVER) maybeSetMinimumSize(vsb, verticalScrollBarSize); if (hsbPolicy != HORIZONTAL_SCROLLBAR_NEVER) maybeSetMinimumSize(hsb, horizontalScrollBarSize); return new Dimension(insetsSize.width + viewportSize.width + viewportInsetsSize.width + rowHeaderSize.width + verticalScrollBarSize.width, insetsSize.height + viewportSize.height + viewportInsetsSize.height + columnHeaderSize.height + horizontalScrollBarSize.height); } } else { return new Dimension(0,0); } }
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); Dimension viewportInsetsSize = new Dimension(0,0); Dimension columnHeaderSize = new Dimension(0,0); Dimension rowHeaderSize = new Dimension(0,0); Dimension verticalScrollBarSize = new Dimension(0,0); Dimension horizontalScrollBarSize = new Dimension(0,0); Insets insets = sc.getInsets(); Border viewportBorder = sc.getViewportBorder(); Insets viewportInsets = null; if (viewportBorder != null) { viewportInsets = viewportBorder.getBorderInsets(parent); if (viewportInsets != null) viewportInsetsSize.setSize(viewportInsets.left + viewportInsets.right, viewportInsets.top + viewportInsets.bottom); } if (insets != null) insetsSize.setSize(insets.left + insets.right, insets.top + insets.bottom); maybeSetMinimumSize(colHead, columnHeaderSize); maybeSetMinimumSize(rowHead, rowHeaderSize); if (vsbPolicy != VERTICAL_SCROLLBAR_NEVER) maybeSetMinimumSize(vsb, verticalScrollBarSize); if (hsbPolicy != HORIZONTAL_SCROLLBAR_NEVER) maybeSetMinimumSize(hsb, horizontalScrollBarSize); return new Dimension(insetsSize.width + viewportSize.width + viewportInsetsSize.width + rowHeaderSize.width + verticalScrollBarSize.width, insetsSize.height + viewportSize.height + viewportInsetsSize.height + columnHeaderSize.height + horizontalScrollBarSize.height); } } else { return new Dimension(0,0); } }
3,931
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); Dimension viewportInsetsSize = new Dimension(0,0); Dimension columnHeaderSize = new Dimension(0,0); Dimension rowHeaderSize = new Dimension(0,0); Dimension verticalScrollBarSize = new Dimension(0,0); Dimension horizontalScrollBarSize = new Dimension(0,0); Insets insets = sc.getInsets(); Border viewportBorder = sc.getViewportBorder(); Insets viewportInsets = null; if (viewportBorder != null) { viewportInsets = viewportBorder.getBorderInsets(parent); if (viewportInsets != null) viewportInsetsSize.setSize(viewportInsets.left + viewportInsets.right, viewportInsets.top + viewportInsets.bottom); } if (insets != null) insetsSize.setSize(insets.left + insets.right, insets.top + insets.bottom); maybeSetMinimumSize(colHead, columnHeaderSize); maybeSetMinimumSize(rowHead, rowHeaderSize); if (vsbPolicy != VERTICAL_SCROLLBAR_NEVER) maybeSetMinimumSize(vsb, verticalScrollBarSize); if (hsbPolicy != HORIZONTAL_SCROLLBAR_NEVER) maybeSetMinimumSize(hsb, horizontalScrollBarSize); return new Dimension(insetsSize.width + viewportSize.width + viewportInsetsSize.width + rowHeaderSize.width + verticalScrollBarSize.width, insetsSize.height + viewportSize.height + viewportInsetsSize.height + columnHeaderSize.height + horizontalScrollBarSize.height); } } else { return new Dimension(0,0); } }
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); Dimension viewportInsetsSize = new Dimension(0,0); Dimension columnHeaderSize = new Dimension(0,0); Dimension rowHeaderSize = new Dimension(0,0); Dimension verticalScrollBarSize = new Dimension(0,0); Dimension horizontalScrollBarSize = new Dimension(0,0); Insets insets = sc.getInsets(); Border viewportBorder = sc.getViewportBorder(); Insets viewportInsets = null; if (viewportBorder != null) { viewportInsets = viewportBorder.getBorderInsets(parent); if (viewportInsets != null) viewportInsetsSize.setSize(viewportInsets.left + viewportInsets.right, viewportInsets.top + viewportInsets.bottom); } if (insets != null) insetsSize.setSize(insets.left + insets.right, insets.top + insets.bottom); maybeSetMinimumSize(colHead, columnHeaderSize); maybeSetMinimumSize(rowHead, rowHeaderSize); if (vsbPolicy != VERTICAL_SCROLLBAR_NEVER) maybeSetMinimumSize(vsb, verticalScrollBarSize); if (hsbPolicy != HORIZONTAL_SCROLLBAR_NEVER) maybeSetMinimumSize(hsb, horizontalScrollBarSize); return new Dimension(insetsSize.width + viewportSize.width + viewportInsetsSize.width + rowHeaderSize.width + verticalScrollBarSize.width, insetsSize.height + viewportSize.height + viewportInsetsSize.height + columnHeaderSize.height + horizontalScrollBarSize.height); } } else { return new Dimension(0,0); } }
3,932
public CharacterBreakIterator() { iter = null; // FIXME? }
public CharacterBreakIterator() { iter = null; // FIXME? }
3,933
public Object clone() { return new CharacterBreakIterator(this); }
public Object clone() { return new CharacterBreakIterator(this); }
3,934
private final boolean isHighSurrogate(char c) { return c >= highSurrogateStart && c <= highSurrogateEnd; }
private final boolean isHighSurrogate(char c) { return c >= highSurrogateStart && c <= highSurrogateEnd; }
3,935
private final boolean isL(char c) { return c >= LBase && c <= LBase + LCount; }
private final boolean isL(char c) { return c >= LBase && c <= LBase + LCount; }
3,936
private final boolean isLVT(char c) { return isL(c) || isV(c) || isT(c); }
private final boolean isLVT(char c) { return isL(c) || isV(c) || isT(c); }
3,937
private final boolean isLowSurrogate(char c) { return c >= lowSurrogateStart && c <= lowSurrogateEnd; }
private final boolean isLowSurrogate(char c) { return c >= lowSurrogateStart && c <= lowSurrogateEnd; }
3,938
private final boolean isT(char c) { return c >= TBase && c <= TBase + TCount; }
private final boolean isT(char c) { return c >= TBase && c <= TBase + TCount; }
3,939
private final boolean isV(char c) { return c >= VBase && c <= VBase + VCount; }
private final boolean isV(char c) { return c >= VBase && c <= VBase + VCount; }
3,940
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
3,941
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
3,942
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
3,943
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
3,944
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
3,945
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
3,946
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
3,947
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
3,948
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
3,949
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; char c; for (char prev = CharacterIterator.DONE; iter.getIndex() < end; prev = c) { c = iter.next(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); // Break after paragraph separators. if (type == Character.PARAGRAPH_SEPARATOR) break; // Now we need some lookahead. char ahead = iter.next(); iter.previous(); if (ahead == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType != Character.NON_SPACING_MARK && !isLowSurrogate(ahead) && !isLVT(ahead)) break; if (!isLVT(c) && isLVT(ahead)) break; if (isL(c) && !isLVT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isV(c) && !isV(ahead) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (isT(c) && !isT(ahead) && aheadType != Character.NON_SPACING_MARK) break; if (!isHighSurrogate(c) && isLowSurrogate(ahead)) break; if (isHighSurrogate(c) && !isLowSurrogate(ahead)) break; if (!isHighSurrogate(prev) && isLowSurrogate(c)) break; } return iter.getIndex(); }
3,950
public int previous() { if (iter.getIndex() == iter.getBeginIndex()) return DONE; //int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MARK && !isLowSurrogate(c) && !isLVT(c)) break; // Now we need some lookahead. char ahead = iter.previous(); if (ahead == CharacterIterator.DONE) { iter.next(); break; } char ahead2 = iter.previous(); iter.next(); iter.next(); if (ahead2 == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType == Character.PARAGRAPH_SEPARATOR) break; if (isLVT(c) && !isLVT(ahead)) break; if (!isLVT(c) && type != Character.NON_SPACING_MARK && isL(ahead)) break; if (!isV(c) && !isT(c) && type != Character.NON_SPACING_MARK && isV(ahead)) break; if (!isT(c) && type != Character.NON_SPACING_MARK && isT(ahead)) break; if (isLowSurrogate(c) && !isHighSurrogate(ahead)) break; if (!isLowSurrogate(c) && isHighSurrogate(ahead)) break; if (isLowSurrogate(ahead) && !isHighSurrogate(ahead2)) break; } return iter.getIndex(); }
public int previous() { if (iter.getIndex() == iter.getBeginIndex()) return DONE; //int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MARK && !isLowSurrogate(c) && !isLVT(c)) break; // Now we need some lookahead. char ahead = iter.previous(); if (ahead == CharacterIterator.DONE) { iter.next(); break; } char ahead2 = iter.previous(); iter.next(); iter.next(); if (ahead2 == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType == Character.PARAGRAPH_SEPARATOR) break; if (isLVT(c) && !isLVT(ahead)) break; if (!isLVT(c) && type != Character.NON_SPACING_MARK && isL(ahead)) break; if (!isV(c) && !isT(c) && type != Character.NON_SPACING_MARK && isV(ahead)) break; if (!isT(c) && type != Character.NON_SPACING_MARK && isT(ahead)) break; if (isLowSurrogate(c) && !isHighSurrogate(ahead)) break; if (!isLowSurrogate(c) && isHighSurrogate(ahead)) break; if (isLowSurrogate(ahead) && !isHighSurrogate(ahead2)) break; } return iter.getIndex(); }
3,951
public int previous() { if (iter.getIndex() == iter.getBeginIndex()) return DONE; //int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MARK && !isLowSurrogate(c) && !isLVT(c)) break; // Now we need some lookahead. char ahead = iter.previous(); if (ahead == CharacterIterator.DONE) { iter.next(); break; } char ahead2 = iter.previous(); iter.next(); iter.next(); if (ahead2 == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType == Character.PARAGRAPH_SEPARATOR) break; if (isLVT(c) && !isLVT(ahead)) break; if (!isLVT(c) && type != Character.NON_SPACING_MARK && isL(ahead)) break; if (!isV(c) && !isT(c) && type != Character.NON_SPACING_MARK && isV(ahead)) break; if (!isT(c) && type != Character.NON_SPACING_MARK && isT(ahead)) break; if (isLowSurrogate(c) && !isHighSurrogate(ahead)) break; if (!isLowSurrogate(c) && isHighSurrogate(ahead)) break; if (isLowSurrogate(ahead) && !isHighSurrogate(ahead2)) break; } return iter.getIndex(); }
public int previous() { if (iter.getIndex() == iter.getBeginIndex()) return DONE; //int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MARK && !isLowSurrogate(c) && !isLVT(c)) break; // Now we need some lookahead. char ahead = iter.previous(); if (ahead == CharacterIterator.DONE) { iter.next(); break; } char ahead2 = iter.previous(); iter.next(); iter.next(); if (ahead2 == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType == Character.PARAGRAPH_SEPARATOR) break; if (isLVT(c) && !isLVT(ahead)) break; if (!isLVT(c) && type != Character.NON_SPACING_MARK && isL(ahead)) break; if (!isV(c) && !isT(c) && type != Character.NON_SPACING_MARK && isV(ahead)) break; if (!isT(c) && type != Character.NON_SPACING_MARK && isT(ahead)) break; if (isLowSurrogate(c) && !isHighSurrogate(ahead)) break; if (!isLowSurrogate(c) && isHighSurrogate(ahead)) break; if (isLowSurrogate(ahead) && !isHighSurrogate(ahead2)) break; } return iter.getIndex(); }
3,952
public int previous() { if (iter.getIndex() == iter.getBeginIndex()) return DONE; //int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MARK && !isLowSurrogate(c) && !isLVT(c)) break; // Now we need some lookahead. char ahead = iter.previous(); if (ahead == CharacterIterator.DONE) { iter.next(); break; } char ahead2 = iter.previous(); iter.next(); iter.next(); if (ahead2 == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType == Character.PARAGRAPH_SEPARATOR) break; if (isLVT(c) && !isLVT(ahead)) break; if (!isLVT(c) && type != Character.NON_SPACING_MARK && isL(ahead)) break; if (!isV(c) && !isT(c) && type != Character.NON_SPACING_MARK && isV(ahead)) break; if (!isT(c) && type != Character.NON_SPACING_MARK && isT(ahead)) break; if (isLowSurrogate(c) && !isHighSurrogate(ahead)) break; if (!isLowSurrogate(c) && isHighSurrogate(ahead)) break; if (isLowSurrogate(ahead) && !isHighSurrogate(ahead2)) break; } return iter.getIndex(); }
public int previous() { if (iter.getIndex() == iter.getBeginIndex()) return DONE; //int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MARK && !isLowSurrogate(c) && !isLVT(c)) break; // Now we need some lookahead. char ahead = iter.previous(); if (ahead == CharacterIterator.DONE) { iter.next(); break; } char ahead2 = iter.previous(); iter.next(); iter.next(); if (ahead2 == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType == Character.PARAGRAPH_SEPARATOR) break; if (isLVT(c) && !isLVT(ahead)) break; if (!isLVT(c) && type != Character.NON_SPACING_MARK && isL(ahead)) break; if (!isV(c) && !isT(c) && type != Character.NON_SPACING_MARK && isV(ahead)) break; if (!isT(c) && type != Character.NON_SPACING_MARK && isT(ahead)) break; if (isLowSurrogate(c) && !isHighSurrogate(ahead)) break; if (!isLowSurrogate(c) && isHighSurrogate(ahead)) break; if (isLowSurrogate(ahead) && !isHighSurrogate(ahead2)) break; } return iter.getIndex(); }
3,953
public int previous() { if (iter.getIndex() == iter.getBeginIndex()) return DONE; //int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MARK && !isLowSurrogate(c) && !isLVT(c)) break; // Now we need some lookahead. char ahead = iter.previous(); if (ahead == CharacterIterator.DONE) { iter.next(); break; } char ahead2 = iter.previous(); iter.next(); iter.next(); if (ahead2 == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType == Character.PARAGRAPH_SEPARATOR) break; if (isLVT(c) && !isLVT(ahead)) break; if (!isLVT(c) && type != Character.NON_SPACING_MARK && isL(ahead)) break; if (!isV(c) && !isT(c) && type != Character.NON_SPACING_MARK && isV(ahead)) break; if (!isT(c) && type != Character.NON_SPACING_MARK && isT(ahead)) break; if (isLowSurrogate(c) && !isHighSurrogate(ahead)) break; if (!isLowSurrogate(c) && isHighSurrogate(ahead)) break; if (isLowSurrogate(ahead) && !isHighSurrogate(ahead2)) break; } return iter.getIndex(); }
public int previous() { if (iter.getIndex() == iter.getBeginIndex()) return DONE; //int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MARK && !isLowSurrogate(c) && !isLVT(c)) break; // Now we need some lookahead. char ahead = iter.previous(); if (ahead == CharacterIterator.DONE) { iter.next(); break; } char ahead2 = iter.previous(); iter.next(); iter.next(); if (ahead2 == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType == Character.PARAGRAPH_SEPARATOR) break; if (isLVT(c) && !isLVT(ahead)) break; if (!isLVT(c) && type != Character.NON_SPACING_MARK && isL(ahead)) break; if (!isV(c) && !isT(c) && type != Character.NON_SPACING_MARK && isV(ahead)) break; if (!isT(c) && type != Character.NON_SPACING_MARK && isT(ahead)) break; if (isLowSurrogate(c) && !isHighSurrogate(ahead)) break; if (!isLowSurrogate(c) && isHighSurrogate(ahead)) break; if (isLowSurrogate(ahead) && !isHighSurrogate(ahead2)) break; } return iter.getIndex(); }
3,954
public int previous() { if (iter.getIndex() == iter.getBeginIndex()) return DONE; //int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MARK && !isLowSurrogate(c) && !isLVT(c)) break; // Now we need some lookahead. char ahead = iter.previous(); if (ahead == CharacterIterator.DONE) { iter.next(); break; } char ahead2 = iter.previous(); iter.next(); iter.next(); if (ahead2 == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType == Character.PARAGRAPH_SEPARATOR) break; if (isLVT(c) && !isLVT(ahead)) break; if (!isLVT(c) && type != Character.NON_SPACING_MARK && isL(ahead)) break; if (!isV(c) && !isT(c) && type != Character.NON_SPACING_MARK && isV(ahead)) break; if (!isT(c) && type != Character.NON_SPACING_MARK && isT(ahead)) break; if (isLowSurrogate(c) && !isHighSurrogate(ahead)) break; if (!isLowSurrogate(c) && isHighSurrogate(ahead)) break; if (isLowSurrogate(ahead) && !isHighSurrogate(ahead2)) break; } return iter.getIndex(); }
public int previous() { if (iter.getIndex() == iter.getBeginIndex()) return DONE; //int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MARK && !isLowSurrogate(c) && !isLVT(c)) break; // Now we need some lookahead. char ahead = iter.previous(); if (ahead == CharacterIterator.DONE) { iter.next(); break; } char ahead2 = iter.previous(); iter.next(); iter.next(); if (ahead2 == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType == Character.PARAGRAPH_SEPARATOR) break; if (isLVT(c) && !isLVT(ahead)) break; if (!isLVT(c) && type != Character.NON_SPACING_MARK && isL(ahead)) break; if (!isV(c) && !isT(c) && type != Character.NON_SPACING_MARK && isV(ahead)) break; if (!isT(c) && type != Character.NON_SPACING_MARK && isT(ahead)) break; if (isLowSurrogate(c) && !isHighSurrogate(ahead)) break; if (!isLowSurrogate(c) && isHighSurrogate(ahead)) break; if (isLowSurrogate(ahead) && !isHighSurrogate(ahead2)) break; } return iter.getIndex(); }
3,955
public int previous() { if (iter.getIndex() == iter.getBeginIndex()) return DONE; //int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MARK && !isLowSurrogate(c) && !isLVT(c)) break; // Now we need some lookahead. char ahead = iter.previous(); if (ahead == CharacterIterator.DONE) { iter.next(); break; } char ahead2 = iter.previous(); iter.next(); iter.next(); if (ahead2 == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType == Character.PARAGRAPH_SEPARATOR) break; if (isLVT(c) && !isLVT(ahead)) break; if (!isLVT(c) && type != Character.NON_SPACING_MARK && isL(ahead)) break; if (!isV(c) && !isT(c) && type != Character.NON_SPACING_MARK && isV(ahead)) break; if (!isT(c) && type != Character.NON_SPACING_MARK && isT(ahead)) break; if (isLowSurrogate(c) && !isHighSurrogate(ahead)) break; if (!isLowSurrogate(c) && isHighSurrogate(ahead)) break; if (isLowSurrogate(ahead) && !isHighSurrogate(ahead2)) break; } return iter.getIndex(); }
public int previous() { if (iter.getIndex() == iter.getBeginIndex()) return DONE; //int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MARK && !isLowSurrogate(c) && !isLVT(c)) break; // Now we need some lookahead. char ahead = iter.previous(); if (ahead == CharacterIterator.DONE) { iter.next(); break; } char ahead2 = iter.previous(); iter.next(); iter.next(); if (ahead2 == CharacterIterator.DONE) break; int aheadType = Character.getType(ahead); if (aheadType == Character.PARAGRAPH_SEPARATOR) break; if (isLVT(c) && !isLVT(ahead)) break; if (!isLVT(c) && type != Character.NON_SPACING_MARK && isL(ahead)) break; if (!isV(c) && !isT(c) && type != Character.NON_SPACING_MARK && isV(ahead)) break; if (!isT(c) && type != Character.NON_SPACING_MARK && isT(ahead)) break; if (isLowSurrogate(c) && !isHighSurrogate(ahead)) break; if (!isLowSurrogate(c) && isHighSurrogate(ahead)) break; if (isLowSurrogate(ahead) && !isHighSurrogate(ahead2)) break; } return iter.getIndex(); }
3,956