Examples of NameBinding


Examples of javax.ws.rs.NameBinding

        if (targetAnns.length == 0) {
            return Collections.emptyList();
        }
        List<String> names = new LinkedList<String>();
        for (Annotation a : targetAnns) {
            NameBinding nb = a.annotationType().getAnnotation(NameBinding.class);
            if (nb != null) {
                names.add(a.annotationType().getName());
            }
        }
        return names;
View Full Code Here

Examples of javax.ws.rs.NameBinding

        if (targetAnns.length == 0) {
            return Collections.emptySet();
        }
        Set<String> names = new LinkedHashSet<String>();
        for (Annotation a : targetAnns) {
            NameBinding nb = a.annotationType().getAnnotation(NameBinding.class);
            if (nb != null) {
                names.add(a.annotationType().getName());
            }
        }
        return names;
View Full Code Here

Examples of javax.ws.rs.NameBinding

        if (targetAnns.length == 0) {
            return Collections.emptyList();
        }
        List<String> names = new LinkedList<String>();
        for (Annotation a : targetAnns) {
            NameBinding nb = a.annotationType().getAnnotation(NameBinding.class);
            if (nb != null) {
                names.add(a.annotationType().getName());
            }
        }
        return names;
View Full Code Here

Examples of javax.ws.rs.NameBinding

        if (targetAnns.length == 0) {
            return Collections.emptySet();
        }
        Set<String> names = new LinkedHashSet<String>();
        for (Annotation a : targetAnns) {
            NameBinding nb = a.annotationType().getAnnotation(NameBinding.class);
            if (nb != null) {
                names.add(a.annotationType().getName());
            }
        }
        return names;
View Full Code Here

Examples of javax.ws.rs.NameBinding

        if (targetAnns.length == 0) {
            return Collections.emptyList();
        }
        List<String> names = new LinkedList<String>();
        for (Annotation a : targetAnns) {
            NameBinding nb = a.annotationType().getAnnotation(NameBinding.class);
            if (nb != null) {
                names.add(a.annotationType().getName());
            }
        }
        return names;
View Full Code Here

Examples of org.picocontainer.NameBinding

    public String getDescriptor() {
        return "AnnotatedFieldInjector-";
    }

    protected NameBinding makeParameterNameImpl(final AccessibleObject member) {
        return new NameBinding() {
            public String getName() {
                return ((Field) member).getName();
            }
        };
    }
View Full Code Here

Examples of org.picocontainer.NameBinding

    public String getDescriptor() {
        return "TypedFieldInjector-";
    }

    protected NameBinding makeParameterNameImpl(final AccessibleObject member) {
        return new NameBinding() {
            public String getName() {
                return ((Field) member).getName();
            }
        };
    }
View Full Code Here

Examples of org.picocontainer.NameBinding

    public String getDescriptor() {
        return "NamedFieldInjector-";
    }

    protected NameBinding makeParameterNameImpl(final AccessibleObject member) {
        return new NameBinding() {
            public String getName() {
                return ((Field) member).getName();
            }
        };
    }
View Full Code Here

Examples of wyvern.tools.typedAST.core.binding.NameBinding

 
  public Type resolve(Environment env) {
    // System.out.println("Looking at: " + this.typeName);
   
    if (env.lookup(this.typeName) != null) {
      NameBinding n = env.lookup(this.typeName);
   
      // System.out.println("NameBinding = " + n);
      // System.out.println("Its type is " + n.getType());
    }
   
    if (env.lookupType(typeName) == null) {
      if (env.lookup(this.typeName) != null) {
        // Perhaps its first class?
        NameBinding n = env.lookup(this.typeName);
        Type t = n.getType();
        return t;
      }
      throw new RuntimeException("Cannot find "+typeName +" in environment "+env);
    }
    TypeBinding typeBinding = env.lookupType(typeName);
View Full Code Here

Examples of wyvern.tools.typedAST.core.binding.NameBinding

  @Override
  protected Type doTypecheck(Environment env, Optional<Type> expected) {
    Type argType = null;
    for (int i = 0; i < bindings.size(); i++) {
      NameBinding bdgs = bindings.get(i);
      bindings.set(i, new NameBindingImpl(bdgs.getName(), TypeResolver.resolve(bdgs.getType(), env)));
    }

    if (bindings.size() == 0)
      argType = Unit.getInstance();
    else if (bindings.size() == 1)
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.