Examples of InterfaceType


Examples of com.sun.mirror.type.InterfaceType

  public static void generateSuperClassAdds(PrintWriter writer, InterfaceDeclaration d) {
    Collection<InterfaceType> super_interfaces = d.getSuperinterfaces();
    if ( super_interfaces.size() > 1 )
      throw new RuntimeException(d + " extends more than one other interface");
    if ( super_interfaces.size() == 1 ) {
      InterfaceType super_interface = super_interfaces.iterator().next();
      writer.print("\t\tif (" + CACHED_EXTS_VAR_NAME + ".contains(\"");
      writer.println(translateFieldName(d.getSimpleName()) + "\"))");
      writer.print("\t\t\t");
      generateAddExtension(writer, super_interface.getDeclaration());
    }
  }
View Full Code Here

Examples of com.sun.mirror.type.InterfaceType

    writer.print(translated_field_name + "\")");
    Collection<InterfaceType> super_interfaces = d.getSuperinterfaces();
    if ( super_interfaces.size() > 1 )
      throw new RuntimeException(d + " extends more than one other interface");
    if ( super_interfaces.size() == 1 ) {
      InterfaceType super_interface = super_interfaces.iterator().next();
      writer.println();
      writer.print("\t\t\t&& " + CACHED_EXTS_VAR_NAME + ".contains(\"");
      writer.print(translateFieldName(super_interface.getDeclaration().getSimpleName()) + "\")");
    }
    Alias alias_annotation = d.getAnnotation(Alias.class);
    if ( alias_annotation != null ) {
      writer.println();
      writer.print("\t\t\t|| " + CACHED_EXTS_VAR_NAME + ".contains(\"");
View Full Code Here

Examples of com.sun.mirror.type.InterfaceType

  public static void generateSuperClassAdds(PrintWriter writer, InterfaceDeclaration d) {
    Collection<InterfaceType> super_interfaces = d.getSuperinterfaces();
    if ( super_interfaces.size() > 1 )
      throw new RuntimeException(d + " extends more than one other interface");
    if ( super_interfaces.size() == 1 ) {
      InterfaceType super_interface = super_interfaces.iterator().next();
      writer.print("\t\tif (" + CACHED_EXTS_VAR_NAME + ".contains(\"");
      writer.println(translateFieldName(d.getSimpleName()) + "\"))");
      writer.print("\t\t\t");
      generateAddExtension(writer, super_interface.getDeclaration());
    }
  }
View Full Code Here

Examples of com.sun.mirror.type.InterfaceType

    writer.print(translated_field_name + "\")");
    Collection<InterfaceType> super_interfaces = d.getSuperinterfaces();
    if ( super_interfaces.size() > 1 )
      throw new RuntimeException(d + " extends more than one other interface");
    if ( super_interfaces.size() == 1 ) {
      InterfaceType super_interface = super_interfaces.iterator().next();
      writer.println();
      writer.print("\t\t\t&& " + CACHED_EXTS_VAR_NAME + ".contains(\"");
      writer.print(translateFieldName(super_interface.getDeclaration().getSimpleName()) + "\")");
    }
    Alias alias_annotation = d.getAnnotation(Alias.class);
    if ( alias_annotation != null ) {
      writer.println();
      writer.print("\t\t\t|| " + CACHED_EXTS_VAR_NAME + ".contains(\"");
View Full Code Here

Examples of com.sun.mirror.type.InterfaceType

  public static void generateSuperClassAdds(PrintWriter writer, InterfaceDeclaration d) {
    Collection<InterfaceType> super_interfaces = d.getSuperinterfaces();
    if ( super_interfaces.size() > 1 )
      throw new RuntimeException(d + " extends more than one other interface");
    if ( super_interfaces.size() == 1 ) {
      InterfaceType super_interface = super_interfaces.iterator().next();
      writer.print("\t\tif (" + CACHED_EXTS_VAR_NAME + ".contains(\"");
      writer.println(translateFieldName(d.getSimpleName()) + "\"))");
      writer.print("\t\t\t");
      generateAddExtension(writer, super_interface.getDeclaration());
    }
  }
View Full Code Here

Examples of com.sun.mirror.type.InterfaceType

    writer.print(translated_field_name + "\")");
    Collection<InterfaceType> super_interfaces = d.getSuperinterfaces();
    if ( super_interfaces.size() > 1 )
      throw new RuntimeException(d + " extends more than one other interface");
    if ( super_interfaces.size() == 1 ) {
      InterfaceType super_interface = super_interfaces.iterator().next();
      writer.println();
      writer.print("\t\t\t&& " + CACHED_EXTS_VAR_NAME + ".contains(\"");
      writer.print(translateFieldName(super_interface.getDeclaration().getSimpleName()) + "\")");
    }
    Alias alias_annotation = d.getAnnotation(Alias.class);
    if ( alias_annotation != null ) {
      writer.println();
      writer.print("\t\t\t|| " + CACHED_EXTS_VAR_NAME + ".contains(\"");
View Full Code Here

Examples of org.apache.beehive.netui.compiler.typesystem.type.InterfaceType

            }
           
            InterfaceType[] superInterfaces = typeDecl.getSuperinterfaces();
            for ( int i = 0; i < superInterfaces.length; i++ )
            {
                InterfaceType superInterface = superInterfaces[i];
                if ( isAssignableFrom( base, getDeclaration( superInterface ) ) ) return true;
            }
        }
       
        return false;
View Full Code Here

Examples of org.apache.openejb.InterfaceType

                return true;
            }

            String ejbName = deploymentInfo.getEjbName();

            InterfaceType type = deploymentInfo.getInterfaceType(method.getDeclaringClass());

            String name = (type == null) ? null : type.getSpecName();

            Permission permission = new EJBMethodPermission(ejbName, name, method);

            AccessControlContext accessContext = ContextManager.getCurrentContext();
View Full Code Here

Examples of org.apache.openejb.InterfaceType

    }

    public Object createProxy(Object primaryKey, Class mainInterface) {
        try {

            final InterfaceType objectInterfaceType = this.interfaceType.getCounterpart();
            final BeanType type = getBeanContext().getComponentType();

            final EjbObjectProxyHandler handler = newEjbObjectHandler(getBeanContext(), primaryKey, objectInterfaceType, getInterfaces(), mainInterface);

            // TODO Is it correct for ManagedBean injection via managed bean class?
View Full Code Here

Examples of org.apache.openejb.InterfaceType

        this.interfaceType = interfaceType;
        this.primaryKey = pk;
        this.setBeanContext(beanContext);

        if (interfaces == null || interfaces.size() == 0) {
            InterfaceType objectInterfaceType = (interfaceType.isHome()) ? interfaceType.getCounterpart() : interfaceType;
            interfaces = new ArrayList<Class>(beanContext.getInterfaces(objectInterfaceType));
        }
       
        if (mainInterface == null && interfaces.size() == 1) {
            mainInterface = interfaces.get(0);
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.