Package anvil.script

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


  }
 
 
  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

  }


  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

    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

        }
      }
    }
    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

   
    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

TOP

Related Classes of anvil.script.InterfaceType

Copyright © 2018 www.massapicom. 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.