Examples of Handle


Examples of org.apache.sshd.sftp.Handle

                request = new SshFxpOpenRequest(id, path, acc, flags);
                break;
            }
            case SSH_FXP_CLOSE: {
                String handleId = buffer.getString();
                Handle handle = session.getHandle(handleId);
                request = new SshFxpCloseRequest(id, handleId, handle);
                break;
            }
            case SSH_FXP_READ: {
                String handleId = buffer.getString();
                long offset = buffer.getLong();
                int len = buffer.getInt();
                Handle handle = session.getHandle(handleId);
                request = new SshFxpReadRequest(id, handleId, offset, len, handle);
                break;
            }
            case SSH_FXP_WRITE: {
                String handleId = buffer.getString();
                long offset = buffer.getLong();
                byte[] data = buffer.getBytes();
                Handle handle = session.getHandle(handleId);
                request = new SshFxpWriteRequest(id, handleId, offset, data, handle);
                break;
            }
            case SSH_FXP_LSTAT: {
                String path = buffer.getString();
                int flags = 0;
                if (session.getVersion() > 5) {
                    flags = buffer.getInt();
                }
                request = new SshFxpLstatRequest(id, path, flags);
                break;
            }
            case SSH_FXP_FSTAT: {
                String handle = buffer.getString();
                int flags = 0;
                if (session.getVersion() > 5) {
                    flags = buffer.getInt();
                }
                Handle p = session.getHandle(handle);
                request = new SshFxpFstatRequest(id, handle, p);
                break;
            }
            case SSH_FXP_SETSTAT: {
                request = new SshFxpSetstatRequest(id);
                break;
            }
            case SSH_FXP_FSETSTAT: {
                request = new SshFxpFsetstatRequest(id);
                break;
            }
            case SSH_FXP_OPENDIR: {
                String path = buffer.getString();
                request = new SshFxpOpendirRequest(id, path);
                break;
            }
            case SSH_FXP_READDIR: {
                String handle = buffer.getString();
                Handle p = session.getHandle(handle);
                request = new SshFxpReaddirRequest(id, handle, p);
                break;
            }
            case SSH_FXP_REMOVE: {
                String path = buffer.getString();
View Full Code Here

Examples of org.apache.tapestry5.internal.plastic.asm.Handle

            buf.append("Type.getType(\"");
            buf.append(((Type) cst).getDescriptor());
            buf.append("\")");
        } else if (cst instanceof Handle) {
            buf.append("new Handle(");
            Handle h = (Handle) cst;
            buf.append("Opcodes.").append(HANDLE_TAG[h.getTag()])
                    .append(", \"");
            buf.append(h.getOwner()).append("\", \"");
            buf.append(h.getName()).append("\", \"");
            buf.append(h.getDesc()).append("\")");
        } else if (cst instanceof Byte) {
            buf.append("new Byte((byte)").append(cst).append(')');
        } else if (cst instanceof Boolean) {
            buf.append(((Boolean) cst).booleanValue() ? "Boolean.TRUE"
                    : "Boolean.FALSE");
View Full Code Here

Examples of org.eclipse.persistence.internal.libraries.asm.Handle

            buf.append("Type.getType(\"");
            buf.append(((Type) cst).getDescriptor());
            buf.append("\")");
        } else if (cst instanceof Handle) {
            buf.append("new Handle(");
            Handle h = (Handle) cst;
            buf.append("Opcodes.").append(HANDLE_TAG[h.getTag()])
                    .append(", \"");
            buf.append(h.getOwner()).append("\", \"");
            buf.append(h.getName()).append("\", \"");
            buf.append(h.getDesc()).append("\")");
        } else if (cst instanceof Byte) {
            buf.append("new Byte((byte)").append(cst).append(')');
        } else if (cst instanceof Boolean) {
            buf.append(((Boolean) cst).booleanValue() ? "Boolean.TRUE"
                    : "Boolean.FALSE");
View Full Code Here

Examples of org.eclipse.wb.gef.graphical.handles.Handle

    }
    return handles;
  }

  private void addResizeHandle(List<Handle> handles, int direction) {
    Handle handle = createResizeHandle(direction, 0.5, IColorConstants.green);
    handles.add(handle);
  }
View Full Code Here

Examples of org.glassfish.hk2.external.org.objectweb.asm.Handle

    public Object mapValue(Object value) {
        if (value instanceof Type) {
            return mapType((Type) value);
        }
        if (value instanceof Handle) {
            Handle h = (Handle) value;
            return new Handle(h.getTag(), mapType(h.getOwner()), mapMethodName(
                    h.getOwner(), h.getName(), h.getDesc()),
                    mapMethodDesc(h.getDesc()));
        }
        return value;
    }
View Full Code Here

Examples of org.jquantlib.quotes.Handle

            throw new UnsupportedOperationException("Work in progress");

        final Calendar calendar = new Target();
        final Date today = Date.todaysDate();
        final DayCounter dayCount = new Actual365Fixed();
        final Handle<Quote> stateVariable = new Handle(new SimpleQuote(s0_.doubleValue()));
        final Handle<YieldTermStructure> riskFreeRate = new Handle(new FlatForward(today, r_.doubleValue(), dayCount));

        final Handle<YieldTermStructure> dividendYield = new Handle(new FlatForward(today, 0.0, dayCount));

        final Handle<BlackVolTermStructure> volatility = new Handle(new BlackConstantVol(today, calendar, sigma_.doubleValue(),dayCount));

        final StochasticProcess1D diffusion = new BlackScholesMertonProcess(
                stateVariable, dividendYield, riskFreeRate, volatility);

View Full Code Here

Examples of org.jruby.compiler.util.HandleFactory.Handle

                classIsPublic = Modifier.isPublic(method.getDeclaringClass().getModifiers());
            }
        }

        // prepare a faster handle if handles are enabled and the method and class are public
        Handle tmpHandle = null;
        try {
            if (USE_HANDLES &&
                    // must be a public method
                    methodIsPublic &&
                    // must be a public class
View Full Code Here

Examples of org.jvnet.hudson.reactor.TaskGraphBuilder.Handle

                return child.isDirectory() && Items.getConfigFile(child).exists();
            }
        });

        TaskGraphBuilder g = new TaskGraphBuilder();
        Handle loadHudson = g.requires(EXTENSIONS_AUGMENTED).attains(JOB_LOADED).add("Loading global config", new Executable() {
            public void run(Reactor session) throws Exception {
                // JENKINS-8043: some slaves (eg. swarm slaves) are not saved into the config file
                // and will get overwritten when reloading. Make a backup copy now, and re-add them later
                NodeList oldSlaves = slaves;
               
View Full Code Here

Examples of org.mvel2.asm.Handle

            buf.append("Type.getType(\"");
            buf.append(((Type) cst).getDescriptor());
            buf.append("\")");
        } else if (cst instanceof Handle) {
            buf.append("new Handle(");
            Handle h = (Handle) cst;
            buf.append("Opcodes.").append(HANDLE_TAG[h.getTag()])
                    .append(", \"");
            buf.append(h.getOwner()).append("\", \"");
            buf.append(h.getName()).append("\", \"");
            buf.append(h.getDesc()).append("\")");
        } else if (cst instanceof Byte) {
            buf.append("new Byte((byte)").append(cst).append(')');
        } else if (cst instanceof Boolean) {
            buf.append(((Boolean) cst).booleanValue() ? "Boolean.TRUE"
                    : "Boolean.FALSE");
View Full Code Here

Examples of org.objectweb.asm.Handle

                                       Handle bsm, Object... bsmArgs) {
      for (int i = 0; i < bsmArgs.length; ++i) {
        if (!(bsmArgs[i] instanceof Handle)) {
          continue;
        }
        Handle h = (Handle)bsmArgs[i];
        if (!h.getName().startsWith("lambda$")) {
          continue;
        }
        String newName = JavaUtils.SYNTHETIC_MEMBER_PREFIX + h.getName();
        bsmArgs[i] = new Handle(h.getTag(), h.getOwner(),
                                newName, h.getDesc());
      }
      mv.visitInvokeDynamicInsn(name, desc, bsm, bsmArgs);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.