Examples of InterfaceType


Examples of anvil.script.InterfaceType

  public Type lookupInheritedDeclaration(String name)
  {
    Type type;
    InterfaceRef[] bases = _bases;
    InterfaceType interfacetype;
    int n = bases.length;
    for(int i=0; i<n; i++) {
      type = bases[i].getInterfaceType().lookupDeclaration(name);
      if (type != null) {
        return type;
View Full Code Here

Examples of anvil.script.InterfaceType

  }
 
 
  protected InterfaceType onInterface(ClassLoader classloader, Class cls, String name, Doc doc)
  {
    InterfaceType intrface = new CompiledInterfaceType(classloader, this, cls, name, doc);
    declare(intrface);
    return intrface;
  }
View Full Code Here

Examples of anvil.script.InterfaceType

  }


  public Type lookupInheritedDeclaration(String name)
  {
    InterfaceType base;
    Type type;
    int n = _bases.length;
    for(int i=0; i<n; i++) {
      if ((base = _bases[i].getInterfaceType()) != null) {
        if ((type = base.lookupDeclaration(name)) != null) {
          return type;
        }
      }
    }
    return null;
View Full Code Here

Examples of anvil.script.InterfaceType

    int n = _bases.length;
    code.iconst(n);
    code.anewarray("java/lang/String");
    for(int i=0; i<n; i++) {
      InterfaceType interfacetype = _bases[i].getInterfaceType();
      code.dup();
      code.iconst(i);
      code.astring(interfacetype.getDescriptor().replace('/', '.'));
      code.aastore();
    }
    code.putstatic(bases);
    //code.println("INTERFACE-END:"+getDescriptor());
    code.vreturn();
View Full Code Here

Examples of anvil.script.InterfaceType

        }
      }
    }
    if (_interfaces != null) {
      InterfaceRef[] bases = _interfaces;
      InterfaceType base;
      for(int i=0; i<bases.length; i++) {
        if ((base = bases[i].getInterfaceType()) != null) {
          if ((type = base.lookupDeclaration(name)) != null) {
            return type;
          }
        }
      }
    }
View Full Code Here

Examples of anvil.script.InterfaceType

   
    int n = _interfaces.length;
    code.iconst(n);
    code.anewarray("java/lang/String");
    for(int i=0; i<n; i++) {
      InterfaceType interfacetype = _interfaces[i].getInterfaceType();
      code.dup();
      code.iconst(i);
      code.astring(interfacetype.getDescriptor().replace('/', '.'));
      code.aastore();
    }
    code.putstatic(bases);

    Enumeration e = _types.elements();
View Full Code Here

Examples of archmapper.main.model.stylemapping.InterfaceType

    String pkg = mappingHelper.getPackageOfImplementationArtifact(intDef);
    List<String> superInterfaces = intDef.getSuperInterface();
   
   
    if (typeMapping != null) {
      InterfaceType intType = typeMapping.getInterfaceType(intDef.getType());
      if (intType != null) {
        superInterfaces.addAll(intType.getSuperInterface());
      }
    }
   
    CodeGenerationHelper.createInterface(pkg, intDef.getInterfaceName(),
        superInterfaces, javaProject);
View Full Code Here

Examples of com.google.dart.engine.type.InterfaceType

        for (InterfaceType mixinType : currentElement.getMixins()) {
          ClassElement mixinElement = mixinType.getElement();
          classesToVisit.add(mixinElement);
        }
        // check super
        InterfaceType supertype = currentElement.getSupertype();
        if (supertype != null) {
          ClassElement superElement = supertype.getElement();
          if (superElement != null) {
            classesToVisit.add(superElement);
          }
        }
      }
View Full Code Here

Examples of com.linkedin.restli.internal.server.model.ResourceMethodDescriptor.InterfaceType

    if (args.length != 5)
      throw new IllegalArgumentException("Bad arguments to code generator");

    final PrintStream outputStream = new PrintStream(new File(args[0]));
    final Class<?> template = Class.forName(args[1]);
    final InterfaceType type = InterfaceType.valueOf(args[2]);
    final String suffix = args[3];
    final boolean useParSeqCtx = Boolean.valueOf(args[4]);

    final GreetingsResourceCodeGenerator gen =
        new GreetingsResourceCodeGenerator(template, type, suffix, useParSeqCtx);
View Full Code Here

Examples of com.sun.jdi.InterfaceType

    }
    if (interfaces == null ) return false;
   
    Iterator iter = interfaces.iterator();
    while (iter.hasNext()) {
      InterfaceType interfaze = (InterfaceType) iter.next();
      if (isAssignableTo(interfaze, toType)) {
        return true;
      }
    }
    return false;
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.