rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
final DoubleWordItem idw = requestDoubleWordRegisters(type); | final DoubleWordItem idw = L1AHelper .requestDoubleWordRegisters(eContext, type); | public final void visit_getfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField... |
final Register tmp = requestRegister(JvmType.INT, false); | final Register tmp = L1AHelper.requestRegister(eContext, JvmType.INT, false); | public final void visit_getstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDeclaringClass().isInitialized()) { final X86Regis... |
final WordItem result = requestWordRegister(type, false); | final WordItem result = L1AHelper.requestWordRegister(eContext, type, false); | public final void visit_getstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDeclaringClass().isInitialized()) { final X86Regis... |
final DoubleWordItem result = requestDoubleWordRegisters(type); | final DoubleWordItem result = L1AHelper.requestDoubleWordRegisters( eContext, type); | public final void visit_getstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDeclaringClass().isInitialized()) { final X86Regis... |
requestRegister(EAX); requestRegister(EDX); | L1AHelper.requestRegister(eContext, EAX); L1AHelper.requestRegister(eContext, EDX); | public final void visit_i2l() { final IntItem v = vstack.popInt(); if (v.isConstant()) { vstack.push(LongItem.createConst(v.getValue())); } else { final X86RegisterPool pool = eContext.getPool(); requestRegister(EAX); requestRegister(EDX); v.loadTo(eContext, EAX); final LongItem result = LongItem.create... |
requestRegister(EAX, v1); | L1AHelper.requestRegister(eContext, EAX, v1); | public final void visit_idiv() { final X86RegisterPool pool = eContext.getPool(); // Pop the arguments of the vstack final IntItem v2 = vstack.popInt(); final IntItem v1 = vstack.popInt(); // We need v1 in EAX, so if that is not the case, // spill those item using EAX requestRegister(EAX, v1); // We need to us... |
requestRegister(EDX); | L1AHelper.requestRegister(eContext, EDX); | public final void visit_idiv() { final X86RegisterPool pool = eContext.getPool(); // Pop the arguments of the vstack final IntItem v2 = vstack.popInt(); final IntItem v1 = vstack.popInt(); // We need v1 in EAX, so if that is not the case, // spill those item using EAX requestRegister(EAX, v1); // We need to us... |
int c2 = v2.getValue(); | final int c2 = v2.getValue(); | private final void visit_if_icmp(int address, int jccOpcode) { IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); // flush vstack before jumping vstack.push(eContext); //TODO: can be less restrictive: v1 must not be register if (prepareForOperation(v1, v2, (jccOpcode == X86Constants.JE) || (jccOpcode... |
os.writeJCC(helper.getInstrLabel(address), jccOpcode); | os.writeJMP(helper.getInstrLabel(address)); | private void visit_ifxx(int type, int address, int jccOpcode) { //IMPROVE: Local case final WordItem val = (WordItem) vstack.pop(type); if ((type == JvmType.INT) && val.isConstant()) { final int ival = ((IntItem) val).getValue(); final boolean jump; switch (jccOpcode) { case X86Constants.JE: jump = (ival... |
requestRegister(ECX); | L1AHelper.requestRegister(eContext, ECX); | public final void visit_instanceof(VmConstClass classRef) { // Prepare final X86RegisterPool pool = eContext.getPool(); // Pre-claim ECX requestRegister(ECX); // Load reference final RefItem ref = vstack.popRef(); ref.load(eContext); final Register refr = ref.getRegister(); // Allocate tmp registers final Re... |
final Register classr = requestRegister(JvmType.INT, false); final Register tmpr = requestRegister(JvmType.INT, false); | final Register classr = L1AHelper.requestRegister(eContext, JvmType.INT, false); final Register tmpr = L1AHelper.requestRegister(eContext, JvmType.INT, false); | public final void visit_instanceof(VmConstClass classRef) { // Prepare final X86RegisterPool pool = eContext.getPool(); // Pre-claim ECX requestRegister(ECX); // Load reference final RefItem ref = vstack.popRef(); ref.load(eContext); final Register refr = ref.getRegister(); // Allocate tmp registers final Re... |
os.writeMOV(INTSIZE, S0, SP, argSlotCount * slotSize); os.writeMOV(INTSIZE, S0, S0, tibOffset); | os.writeMOV(INTSIZE, EAX, SP, argSlotCount * slotSize); os.writeMOV(INTSIZE, EAX, EAX, tibOffset); | public final void visit_invokevirtual(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmMethod mts = methodRef.getResolvedVmMethod(); dropParameters(mts, true); if (mts.isStatic()) { throw new IncompatibleClassChangeError( "Static method in in... |
os.writeMOV(INTSIZE, EAX, S0, arrayDataOffset + (tibIndex * slotSize)); | os.writeMOV(INTSIZE, EAX, EAX, arrayDataOffset + (tibIndex * slotSize)); | public final void visit_invokevirtual(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmMethod mts = methodRef.getResolvedVmMethod(); dropParameters(mts, true); if (mts.isStatic()) { throw new IncompatibleClassChangeError( "Static method in in... |
vstack.push(eContext); IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); v2.release1(eContext); v1.release1(eContext); vstack.push1(IntItem.createStack()); | L1AHelper.requestRegister(eContext, EDX); final IntItem result = IntItem.createReg(EDX); eContext.getPool().transferOwnerTo(EDX, result); | public final void visit_irem() { //TODO: port to orp-style vstack.push(eContext); IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); v2.release1(eContext); v1.release1(eContext); vstack.push1(IntItem.createStack()); os.writePOP(S0); // Value2 os.writePOP(EAX); // Value1 os.writeCDQ(); os.writeIDIV_... |
os.writePOP(S0); os.writePOP(EAX); os.writeCDQ(); os.writeIDIV_EAX(S0); os.writePUSH(EDX); | final IntItem v2 = vstack.popInt(); final IntItem v1 = vstack.popInt(); L1AHelper.requestRegister(eContext, EAX, v1); v2.loadIf(eContext, ~Item.Kind.LOCAL); v1.loadTo(eContext, EAX); os.writeCDQ(); if (v2.isLocal()) { os.writeIDIV_EAX(FP, v2.getOffsetToFP()); } else { os.writeIDIV_EAX(v2.getRegister()); } vstac... | public final void visit_irem() { //TODO: port to orp-style vstack.push(eContext); IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); v2.release1(eContext); v1.release1(eContext); vstack.push1(IntItem.createStack()); os.writePOP(S0); // Value2 os.writePOP(EAX); // Value1 os.writeCDQ(); os.writeIDIV_... |
final DoubleWordItem result = requestDoubleWordRegisters(JvmType.LONG); os.writeLEA(refr, refr, idxr, 8, VmArray.DATA_OFFSET * 4); os.writeMOV(INTSIZE, result.getLsbRegister(), refr, 0); os.writeMOV(INTSIZE, result.getMsbRegister(), refr, 4); | final DoubleWordItem result = L1AHelper.requestDoubleWordRegisters( eContext, JvmType.LONG); os.writeLEA(refr, refr, idxr, 8, arrayDataOffset); os.writeMOV(INTSIZE, result.getLsbRegister(), refr, LSB); os.writeMOV(INTSIZE, result.getMsbRegister(), refr, MSB); | public final void visit_laload() { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); idx.load(eContext); ref.load(eContext); final Register idxr = idx.getRegister(); final Register refr = ref.getRegister(); checkBounds(refr, idxr); final DoubleWordItem result = requestDoubleWordRegister... |
vstack.push(result); | public final void visit_laload() { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); idx.load(eContext); ref.load(eContext); final Register idxr = idx.getRegister(); final Register refr = ref.getRegister(); checkBounds(refr, idxr); final DoubleWordItem result = requestDoubleWordRegister... | |
final IntItem result = (IntItem) requestWordRegister(JvmType.INT, false); | final IntItem result = (IntItem) L1AHelper.requestWordRegister( eContext, JvmType.INT, false); | public final void visit_lcmp() { final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); // Load v2.load(eContext); final Register v2_lsb = v2.getLsbRegister(); final Register v2_msb = v2.getMsbRegister(); v1.load(eContext); final Register v1_lsb = v1.getLsbRegister(); final Register v1_ms... |
final LongItem result = (LongItem) requestDoubleWordRegisters( JvmType.LONG, EAX, EDX); | final LongItem result = (LongItem) L1AHelper .requestDoubleWordRegisters(eContext, JvmType.LONG, EAX, EDX); | public final void visit_lmul() { //TODO: port to orp-style vstack.push(eContext); final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); v2.release1(eContext); v1.release1(eContext); writePOP64(Register.EBX, Register.ECX); // Value 2 final Register v2_lsb = Register.EBX; final Register v2... |
IntItem key = vstack.popInt(); | final IntItem key = vstack.popInt(); | public final void visit_lookupswitch(int defAddress, int[] matchValues, int[] addresses) { final int n = matchValues.length; //BootLog.debug("lookupswitch length=" + n); IntItem key = vstack.popInt(); key.load(eContext); Register r = key.getRegister(); // Conservative assumption, flush stack vstack.push(eCont... |
Register r = key.getRegister(); | final Register keyr = key.getRegister(); | public final void visit_lookupswitch(int defAddress, int[] matchValues, int[] addresses) { final int n = matchValues.length; //BootLog.debug("lookupswitch length=" + n); IntItem key = vstack.popInt(); key.load(eContext); Register r = key.getRegister(); // Conservative assumption, flush stack vstack.push(eCont... |
os.writeCMP_Const(r, matchValues[i]); | os.writeCMP_Const(keyr, matchValues[i]); | public final void visit_lookupswitch(int defAddress, int[] matchValues, int[] addresses) { final int n = matchValues.length; //BootLog.debug("lookupswitch length=" + n); IntItem key = vstack.popInt(); key.load(eContext); Register r = key.getRegister(); // Conservative assumption, flush stack vstack.push(eCont... |
requestRegister(ECX, v2); | L1AHelper.requestRegister(eContext, ECX, v2); | public final void visit_lshl() { final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong(); requestRegister(ECX, v2); v2.loadTo(eContext, ECX); v1.load(eContext); final Register v1_lsb = v1.getLsbRegister(); final Register v1_msb = v1.getMsbRegister(); os.writeAND(ECX, 63); os.writeCMP_Const(EC... |
requestRegister(ECX, cnt); | L1AHelper.requestRegister(eContext, ECX, cnt); | public final void visit_lshr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong(); final X86RegisterPool pool = eContext.getPool(); // Get cnt into ECX if (!cnt.uses(ECX)) { val.spillIfUsing(eContext, ECX); requestRegister(ECX, cnt); cnt.loadTo(eContext, ECX); } // Load val val.... |
requestRegister(ECX, cnt); | L1AHelper.requestRegister(eContext, ECX, cnt); | public final void visit_lushr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong(); final X86RegisterPool pool = eContext.getPool(); // Get cnt into ECX if (!cnt.uses(ECX)) { val.spillIfUsing(eContext, ECX); requestRegister(ECX, cnt); cnt.loadTo(eContext, ECX); } // Load val val... |
RefItem v = vstack.popRef(); | final RefItem v = vstack.popRef(); | public final void visit_monitorenter() { vstack.push(eContext); RefItem v = vstack.popRef(); v.release1(eContext); // Objectref is already on the stack invokeJavaMethod(context.getMonitorEnterMethod()); } |
RefItem v = vstack.popRef(); | final RefItem v = vstack.popRef(); | public final void visit_monitorexit() { vstack.push(eContext); RefItem v = vstack.popRef(); v.release1(eContext); // Objectref is already on the stack invokeJavaMethod(context.getMonitorExitMethod()); } |
final Register classr = requestRegister(JvmType.REFERENCE, false); | final Register classr = L1AHelper.requestRegister(eContext, JvmType.REFERENCE, false); | public final void visit_multianewarray(VmConstClass clazz, int dimensions) { // flush all vstack items to the stack // all registers are freed vstack.push(eContext); // Create the dimensions array os.writePUSH(10); /* type=int */ os.writePUSH(dimensions); /* elements */ invokeJavaMethod(context.getAllocPrimitiv... |
releaseRegister(classr); | L1AHelper.releaseRegister(eContext, classr); | public final void visit_multianewarray(VmConstClass clazz, int dimensions) { // flush all vstack items to the stack // all registers are freed vstack.push(eContext); // Create the dimensions array os.writePUSH(10); /* type=int */ os.writePUSH(dimensions); /* elements */ invokeJavaMethod(context.getAllocPrimitiv... |
final Register classr = requestRegister(JvmType.REFERENCE, false); | final Register classr = L1AHelper.requestRegister(eContext, JvmType.REFERENCE, false); | public final void visit_new(VmConstClass classRef) { // Push all vstack.push(eContext); // Allocate tmp register final Register classr = requestRegister(JvmType.REFERENCE, false); writeResolveAndLoadClassToReg(classRef, classr); /* Setup a call to SoftByteCodes.allocObject */ os.writePUSH(classr); /* vmClass */... |
releaseRegister(classr); | L1AHelper.releaseRegister(eContext, classr); | public final void visit_new(VmConstClass classRef) { // Push all vstack.push(eContext); // Allocate tmp register final Register classr = requestRegister(JvmType.REFERENCE, false); writeResolveAndLoadClassToReg(classRef, classr); /* Setup a call to SoftByteCodes.allocObject */ os.writePUSH(classr); /* vmClass */... |
if (helper.needsWriteBarrier()) { final Register tmp = requestRegister(JvmType.INT, false); | if (!inf.isPrimitive() && helper.needsWriteBarrier()) { final Register tmp = L1AHelper.requestRegister(eContext, JvmType.INT, false); | public final void visit_putfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField... |
releaseRegister(tmp); | L1AHelper.releaseRegister(eContext, tmp); | public final void visit_putfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField... |
final Register tmp = requestRegister(JvmType.INT, false); | final Register tmp = L1AHelper.requestRegister(eContext, JvmType.INT, false); | public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = requestRegister(JvmType.INT, false); writeInitializeC... |
releaseRegister(tmp); | L1AHelper.releaseRegister(eContext, tmp); | public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = requestRegister(JvmType.INT, false); writeInitializeC... |
if (helper.needsWriteBarrier()) { final Register tmp = requestRegister(JvmType.INT, false); | if (!sf.isPrimitive() && helper.needsWriteBarrier()) { final Register tmp = L1AHelper.requestRegister(eContext, JvmType.INT, false); | public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = requestRegister(JvmType.INT, false); writeInitializeC... |
final Register tmp = requestRegister(JvmType.INT, false); | public final void visit_ret(int index) { // Calc EBP offset final int ebpOfs = stackFrame.getEbpOffset(index); // Claim tmp register final Register tmp = requestRegister(JvmType.INT, false); // Load ret & jmp os.writeMOV(INTSIZE, tmp, FP, ebpOfs); os.writeJMP(tmp); // Release releaseRegister(tmp); } | |
os.writeMOV(INTSIZE, tmp, FP, ebpOfs); os.writeJMP(tmp); releaseRegister(tmp); | os.writeJMP(FP, ebpOfs); | public final void visit_ret(int index) { // Calc EBP offset final int ebpOfs = stackFrame.getEbpOffset(index); // Claim tmp register final Register tmp = requestRegister(JvmType.INT, false); // Load ret & jmp os.writeMOV(INTSIZE, tmp, FP, ebpOfs); os.writeJMP(tmp); // Release releaseRegister(tmp); } |
valSize = WORDSIZE; scale = 2; resultType = JvmType.INT; break; | private final void waload(int jvmType) { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); final int valSize; final int scale; final int resultType; final boolean isfloat = (jvmType == JvmType.FLOAT); switch (jvmType) { case JvmType.BYTE: valSize = BYTESIZE; scale = 1; resultType ... | |
result = requestWordRegister(resultType, (valSize == BYTESIZE)); | result = L1AHelper.requestWordRegister(eContext, resultType, (valSize == BYTESIZE)); | private final void waload(int jvmType) { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); final int valSize; final int scale; final int resultType; final boolean isfloat = (jvmType == JvmType.FLOAT); switch (jvmType) { case JvmType.BYTE: valSize = BYTESIZE; scale = 1; resultType ... |
valSize = WORDSIZE; scale = 2; valType = JvmType.INT; break; | private final void wastore(int jvmType) { final boolean useBarrier = (context.getWriteBarrier() != null); final int valSize; final int scale; final int valType; int extraLoadIdxMask = 0; switch (jvmType) { case JvmType.BYTE: valSize = BYTESIZE; scale = 1; valType = JvmType.INT; break; case JvmType.CHAR... | |
requestRegister(EAX, val); | L1AHelper.requestRegister(eContext, EAX, val); | private final void wreturn(int jvmType) { final WordItem val = (WordItem) vstack.pop(jvmType); // Return value must be in EAX if (!val.uses(EAX)) { requestRegister(EAX, val); val.loadTo(eContext, EAX); } // Release val.release(eContext); // Do actual return visit_return(); } |
vstack.push(eContext); | private final void writeInitializeClass(VmConstFieldRef fieldRef, Register scratch) { // Get fieldRef via constantpool to avoid direct object references in // the native code final VmType declClass = fieldRef.getResolvedVmField() .getDeclaringClass(); if (!declClass.isInitialized()) { // Now look for class ... | |
FileDialog(Frame parent) { this(parent, "", LOAD); } | public FileDialog(Dialog parent) { this(parent, "", LOAD); } | FileDialog(Frame parent){ this(parent, "", LOAD);} |
CopyNode(TemplateNode children, TemplateNode next, String uas) | CopyNode(String uas) | CopyNode(TemplateNode children, TemplateNode next, String uas) { super(children, next); this.uas = uas; } |
super(children, next); | CopyNode(TemplateNode children, TemplateNode next, String uas) { super(children, next); this.uas = uas; } | |
return new CopyNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), uas); | TemplateNode ret = new CopyNode(uas); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; | TemplateNode clone(Stylesheet stylesheet) { return new CopyNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), uas); } |
public abstract float get (); | public FloatBuffer get (float[] dst, int offset, int length) { checkArraySize(dst.length, offset, length); checkForUnderflow(length); for (int i = offset; i < offset + length; i++) { dst [i] = get (); } return this; } | public abstract float get (); |
public abstract FloatBuffer put (float b); | public FloatBuffer put (FloatBuffer src) { if (src == this) throw new IllegalArgumentException (); checkForOverflow(src.remaining()); if (src.remaining () > 0) { float[] toPut = new float [src.remaining ()]; src.get (toPut); put (toPut); } return this; } | public abstract FloatBuffer put (float b); |
if (here == root) return null; | private Node successor(Node here, boolean forward) { Node next; // the "leftmost" end is funky if (here == null) { return forward ? root : null; } // // Forward, this is preorder: children before siblings. // Backward, it's postorder: we saw the children already. // if (forwa... | |
jComponent.addInternalFrameListener(new WindowEventDispatcher()); | this.eventDispatcher = new WindowEventDispatcher(); jComponent.addInternalFrameListener(eventDispatcher); | public SwingBaseWindowPeer(SwingToolkit toolkit, awtT window, peerT jComponent) { super(toolkit, window, jComponent); jComponent.addInternalFrameListener(new WindowEventDispatcher()); } |
if (name == null && ! nameExplicitlySet) name = generateName(); | public String getName() { return name; } | |
return true; | return false; | public boolean isNativeLookAndFeel() { return true; } |
os.writeSETCC(result.getRegister(), methodToCC(mcode)); | os.writeSETCC(resultr, methodToCC(mcode)); | public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic) { //final int type = getClass(method); final int mcode = getMethodCode(method); final VirtualStack vstack = ec.getVStack(); final AbstractX86Stream os = ec.getStream(); final ItemFactory ifac = ec.getItemF... |
throws NotImplementedException | public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) { // XXX Implement. Sun uses undocumented implementation class // sun.java2d.SunCompositeContext. throw new Error("not... | |
public synchronized void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); } | public void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); } | public synchronized void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); } // addPropertyChangeListener() |
protected Object clone() throws CloneNotSupportedException { return null; } | protected Object clone() throws CloneNotSupportedException { AbstractAction copy = (AbstractAction) super.clone(); copy.store = (HashMap) store.clone(); return copy; } | protected Object clone() throws CloneNotSupportedException { // What to do?? return null; } // clone() |
public synchronized void removePropertyChangeListener(PropertyChangeListener listener) { changeSupport.removePropertyChangeListener(listener); } | public void removePropertyChangeListener(PropertyChangeListener listener) { changeSupport.removePropertyChangeListener(listener); } | public synchronized void removePropertyChangeListener(PropertyChangeListener listener) { changeSupport.removePropertyChangeListener(listener); } // removePropertyChangeListener() |
if (parent != container) throw new AWTError("invalid parent"); | if (container != parent) throw new AWTError("BoxLayout can't be shared"); | public float getLayoutAlignmentX(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return 0; } |
return 0; | checkTotalRequirements(); return xTotal.alignment; | public float getLayoutAlignmentX(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return 0; } |
if (parent != container) throw new AWTError("invalid parent"); | if (container != parent) throw new AWTError("BoxLayout can't be shared"); | public float getLayoutAlignmentY(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return 0; } |
return 0; | checkTotalRequirements(); return yTotal.alignment; | public float getLayoutAlignmentY(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return 0; } |
if (parent != container) throw new AWTError("invalid parent"); | xChildren = null; yChildren = null; xTotal = null; yTotal = null; offsetsX = null; offsetsY = null; spansX = null; spansY = null; | public void invalidateLayout(Container parent) { if (parent != container) throw new AWTError("invalid parent"); } |
Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSizeRequirements(hSizeReqs, vSizeReqs); | synchronized(container.getTreeLock()) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); | public void layoutContainer(Container parent) { // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSize... |
int[] hSpans = new int[children.length]; int[] hOffsets = new int[children.length]; int[] vSpans = new int[children.length]; int[] vOffsets = new int[children.length]; Insets insets = container.getInsets(); int width = container.getWidth() - insets.left - insets.right; int height = container.getHeight() - insets.top -... | checkLayout(); Component[] children = container.getComponents(); Insets in = container.getInsets(); | public void layoutContainer(Container parent) { // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSize... |
{ Component child = children[i]; child.setBounds(hOffsets[i] + insets.left, vOffsets[i] + insets.top, hSpans[i], vSpans[i]); | children[i].setBounds(offsetsX[i] + in.left, offsetsY[i] + in.top, spansX[i], spansY[i]); | public void layoutContainer(Container parent) { // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSize... |
if (parent != container) throw new AWTError("invalid parent"); | if (container != parent) throw new AWTError("BoxLayout can't be shared"); | public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; Si... |
Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSizeRequirements(hSizeReqs, vSizeReqs); SizeRequirements hReq; SizeRequirements vReq; if (isHorizontalIn(container)) { hReq = S... | checkTotalRequirements(); return new Dimension(xTotal.maximum, yTotal.maximum); | public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; Si... |
if (parent != container) throw new AWTError("invalid parent"); | if (container != parent) throw new AWTError("BoxLayout can't be shared"); | public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; Si... |
Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSizeRequirements(hSizeReqs, vSizeReqs); SizeRequirements hReq; SizeRequirements vReq; if (isHorizontalIn(container)) { hReq = S... | checkTotalRequirements(); return new Dimension(xTotal.minimum, yTotal.minimum); | public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; Si... |
if (parent != container) throw new AWTError("invalid parent"); | if (container != parent) throw new AWTError("BoxLayout can't be shared"); | public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; ... |
Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSizeRequirements(hSizeReqs, vSizeReqs); SizeRequirements hReq; SizeRequirements vReq; if (isHorizontalIn(container)) { hReq = S... | checkTotalRequirements(); Insets i = container.getInsets(); return new Dimension(xTotal.preferred + i.left + i.right, yTotal.preferred + i.top + i.bottom); | public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; ... |
int len = dst.capacity() - dst.position(); | int len = dst.remaining(); | public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.capacity() - dst.position(); if ((! isBlocking()) && ava... |
public abstract int write (ByteBuffer src) throws IOException; | public final long write(ByteBuffer[] dsts) throws IOException { long b = 0; for (int i = 0; i < dsts.length; i++) b += write(dsts[i]); return b; } | public abstract int write (ByteBuffer src) throws IOException; |
if (! this.isLightweight() && dispatcher == null) | if (! this.isLightweight()) | private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ... |
if (dispatcher == null) | private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ... | |
return false; | return focusTraversalKeys != null && focusTraversalKeys[id] != null; | public boolean areFocusTraversalKeysSet(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalAr... |
return null; | Set s = null; if (focusTraversalKeys != null) s = focusTraversalKeys[id]; if (s == null && parent != null) s = parent.getFocusTraversalKeys (id); return s == null ? (KeyboardFocusManager.getCurrentKeyboardFocusManager() .getDefaultFocusTraversalKeys(id)) : s; | public Set getFocusTraversalKeys(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentE... |
return null; | if (!isFocusCycleRoot ()) return null; if (focusTraversalPolicy == null) { Container ancestor = getFocusCycleRootAncestor (); if (ancestor != this) return ancestor.getFocusTraversalPolicy (); else { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); return manager.getDefaultFocusT... | public FocusTraversalPolicy getFocusTraversalPolicy() { return null; } |
if (this == c && isFocusCycleRoot ()) return true; Container ancestor = getFocusCycleRootAncestor (); if (c == ancestor) return true; | public boolean isFocusCycleRoot(Container c) { return false; } | |
return false; | return focusTraversalPolicy == null; | public boolean isFocusTraversalPolicySet() { return false; } |
r.parent = null; | public void remove(int index) { synchronized (getTreeLock ()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); ... | |
this.focusCycleRoot = focusCycleRoot; | public void setFocusCycleRoot(boolean focusCycleRoot) { } | |
throw new Error ("not implemented"); | int i = keystrokes.size (); Iterator iter = keystrokes.iterator (); while (--i >= 0) { Object o = iter.next (); if (!(o instanceof AWTKeyStroke) || sa.contains (o) || sb.contains (o) || sc.contains (o) || ((AWTKeyStroke) o).keyCode == KeyEvent.VK_UNDEFINED) throw new IllegalArgumentException (); } if (focusTraversalK... | public void setFocusTraversalKeys(int id, Set keystrokes) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new... |
focusTraversalPolicy = policy; | public void setFocusTraversalPolicy(FocusTraversalPolicy policy) { } | |
invalidateTree(); | public void setFont(Font f) { super.setFont(f); // FIXME, should invalidate all children with font == null } | |
KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.downFocusCycle (this); | public void transferFocusDownCycle() { } | |
Component candidate = mouseEventTarget; | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi... | |
while(candidate != null) | Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi... |
if (candidate.isShowing()) { Point cp = SwingUtilities.convertPoint(nativeContainer, x, y, candidate); if (candidate.contains(cp.x, cp.y)) { if (candidate instanceof Container && ((Container)candidate).getComponentCount() > 0) candidate = SwingUtilities.getDeepestComponentAt(candidate, cp.x, cp.y); break; } } cand... | candidate = SwingUtilities.getDeepestComponentAt(parent, p.x, p.y); | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi... |
candidate = SwingUtilities.getDeepestComponentAt(nativeContainer, x, y); | p = SwingUtilities.convertPoint(parent, p.x, p.y, parent.parent); parent = parent.parent; } | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi... |
if (mouseEventTarget != null && mouseEventTarget.isShowing() && mouseEventTarget != candidate) | if (lastComponentEntered != null && lastComponentEntered.isShowing() && lastComponentEntered != candidate) | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi... |
x, y, mouseEventTarget); MouseEvent exited = new MouseEvent (mouseEventTarget, | x, y, lastComponentEntered); MouseEvent exited = new MouseEvent (lastComponentEntered, | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi... |
mouseEventTarget.dispatchEvent (exited); mouseEventTarget = null; | lastComponentEntered.dispatchEvent (exited); lastComponentEntered = null; | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi... |
&& candidate != mouseEventTarget) | && candidate != lastComponentEntered) | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi... |
mouseEventTarget = candidate; | lastComponentEntered = mouseEventTarget; | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi... |
x, y, candidate); MouseEvent entered = new MouseEvent (mouseEventTarget, | x, y, lastComponentEntered); MouseEvent entered = new MouseEvent (lastComponentEntered, | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi... |
mouseEventTarget.dispatchEvent (entered); | lastComponentEntered.dispatchEvent (entered); | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi... |
if (me.getID() == MouseEvent.MOUSE_RELEASED || me.getID() == MouseEvent.MOUSE_PRESSED && pressCount > 0 || me.getID() == MouseEvent.MOUSE_DRAGGED) mouseEventTarget = pressedComponent; else if (me.getID() == MouseEvent.MOUSE_CLICKED) { if (candidate != pressedComponent) mouseEventTarget = null; else if (pressCou... | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi... | |
&& e.getID() != MouseEvent.MOUSE_ENTERED) | && e.getID() != MouseEvent.MOUSE_ENTERED && e.getID() != MouseEvent.MOUSE_EXITED) | boolean handleEvent(AWTEvent e) { if ((eventMask & e.getID()) == 0) return false; if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent(me); // Avoid dispatching an ENTERED event twice. if (mouseEventTarget != null && mouse... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.