Examples of addInterface()


Examples of alt.jiapi.reflect.JiapiClass.addInterface()

    public void instrument(InstructionList il) {
        JiapiClass clazz = getCurrentClass();

        for (int i = 0; i < interfaceNames.length; i++) {
            clazz.addInterface(interfaceNames[i]);
        }

        forward(il);
    }
}
View Full Code Here

Examples of anvil.codec.ClassRoom.addInterface()

    ClassRoom clazz = new ClassRoom();
    ConstantPool pool = clazz.getPool();
    String classname = getNextName();
    clazz.setClassname(classname, null);
    clazz.setSuperClassname("java/lang/Object");
    clazz.addInterface("anvil/script/FunctionDispatcher");
    clazz.setAccessFlags(ACC_PUBLIC|ACC_FINAL);

    Hashlist constants = new Hashlist();

    //generic
View Full Code Here

Examples of anvil.codec.ClassRoom.addInterface()

    ClassRoom clazz = new ClassRoom();
    ConstantPool pool = clazz.getPool();
    String classname = getNextName();
    clazz.setClassname(classname, null);
    clazz.setSuperClassname("java/lang/Object");
    clazz.addInterface("anvil/script/GeneratorDispatcher");
    clazz.setAccessFlags(ACC_PUBLIC|ACC_FINAL);

    Method method = clazz.createMethod("<init>", "()V", ACC_PUBLIC);
    Code code = method.getCode();
    code.self();
View Full Code Here

Examples of ch.rakudave.jnetmap.model.device.Device.addInterface()

      Logger.debug("Unable to find opposite", e);
    }
    if (aSwitch == null) { // create a switch if necessary
      aSwitch = new Host(Type.Switch);
      map.addVertex(aSwitch);
      aSwitch.addInterface(new TransparentIF(aSwitch, gToS, gatewayIF));
      map.addEdge(gToS, gateway, aSwitch);
    }
    final Device gw = gateway, sw = aSwitch;
    final NetworkIF gif = gatewayIF;
    for (final InetAddress address : hosts.keySet()) {
View Full Code Here

Examples of ch.rakudave.jnetmap.model.device.Host.addInterface()

                d.setName(address.getHostName());
                PhysicalIF pif = new PhysicalIF(d, c, address.getHostAddress());
                  pif.setPingMethod(hosts.get(address));
                  pif.setSubnet(subnet.getInfo().getNetmask());
                  pif.setGateway(subnet.getInfo().getLowAddress());
                d.addInterface(pif);
                SNMP.inferProperties(d);
              sw.addInterface(new TransparentIF(sw, c, pif));
              map.addVertex(d);
              map.addEdge(c, d, sw);
            } else {
View Full Code Here

Examples of com.alibaba.dubbo.common.bytecode.ClassGenerator.addInterface()

        if(! hasAdaptiveAnnotation)
            throw new IllegalStateException("No adaptive method on extension " + type.getName() + ", refuse to create the adaptive class!");
       
        ClassGenerator cg = ClassGenerator.newInstance(classLoader);
        cg.setClassName(type.getName() + "$Adpative");
        cg.addInterface(type);
        cg.addDefaultConstructor();
       
        for (Method method : methods) {
            Class<?> rt = method.getReturnType();
            Class<?>[] pts = method.getParameterTypes();
View Full Code Here

Examples of com.caucho.bytecode.JavaClass.addInterface()

        jClass.setSuperClass(superClassName);
        jClass.setThisClass(thisClassName);

        for (Class<?> iface : types) {
          if (iface.isInterface())
            jClass.addInterface(iface.getName().replace('.', '/'));
        }
       
        jClass.addInterface(ScopeProxy.class.getName().replace('.', '/'));

        JavaField factoryField =
View Full Code Here

Examples of com.dianping.cat.home.nettopo.entity.Connection.addInterface()

          interB.setOutstate(interA.getOutstate());
          interB.setInDiscardsState(interA.getInDiscardsState());
          interB.setOutDiscardsState(interA.getOutDiscardsState());
          interB.setInErrorsState(interA.getInErrorsState());
          interB.setOutErrorsState(interA.getOutErrorsState());
          connectionB.addInterface(interB);
        }
        connectionB.setInsum(connectionA.getInsum());
        connectionB.setOutsum(connectionA.getOutsum());
        connectionB.setFrom(connectionA.getFrom());
        connectionB.setTo(connectionA.getTo());
View Full Code Here

Examples of com.hazelcast.config.InterfacesConfig.addInterface()

        tcpIpConfig.addMember("127.0.0.1:5701");
        tcpIpConfig.addMember("127.0.0.1:5702");

        InterfacesConfig interfaces = networkConfig.getInterfaces();
        interfaces.setEnabled(true);
        interfaces.addInterface("127.0.0.1");

        testJoin(config);
    }

    @Test
View Full Code Here

Examples of com.hazelcast.config.MemberGroupConfig.addInterface()

    private Collection<MemberGroupConfig> createMemberGroupConfigs() {
        Collection<MemberGroupConfig> groupConfigs = new HashSet<MemberGroupConfig>();

        MemberGroupConfig group1 = new MemberGroupConfig();
        group1.addInterface("192.168.*.*");

        MemberGroupConfig group2 = new MemberGroupConfig();
        group2.addInterface("172.16.*.*");

        MemberGroupConfig group3 = new MemberGroupConfig();
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.