Examples of bound()


Examples of com.helger.jcodemodel.JTypeVar.bound()

        return new Types(codeModel);
    }

    public static JTypeVar generifyWithBoundsFrom(IJGenerifiable generifiable, String typeParameterName, AbstractJClass typeParameterBounds) {
        JTypeVar result = generifiable.generify(typeParameterName);
        result.bound(typeParameterBounds._extends());
        Iterator<AbstractJClass> iterator = typeParameterBounds._implements();
        while (iterator.hasNext())
            result.bound(iterator.next());
        return result;
    }
View Full Code Here

Examples of com.helger.jcodemodel.JTypeVar.bound()

    public static JTypeVar generifyWithBoundsFrom(IJGenerifiable generifiable, String typeParameterName, AbstractJClass typeParameterBounds) {
        JTypeVar result = generifiable.generify(typeParameterName);
        result.bound(typeParameterBounds._extends());
        Iterator<AbstractJClass> iterator = typeParameterBounds._implements();
        while (iterator.hasNext())
            result.bound(iterator.next());
        return result;
    }

    public final JPrimitiveType _void;
    public final JPrimitiveType _long;
View Full Code Here

Examples of com.helger.jcodemodel.JTypeVar.bound()

        classAnnotator.annotate(element.getAnnotationMirrors());
        for (TypeParameterElement parameter: element.getTypeParameters()) {
            JTypeVar typeVariable = newClass.generify(parameter.getSimpleName().toString());
            environment.put(typeVariable.name(), typeVariable);
            for (TypeMirror type: parameter.getBounds()) {
                typeVariable.bound((AbstractJClass)toJType(type, environment));
            }
        }
        TypeMirror superclass = element.getSuperclass();
        if (superclass != null && superclass.getKind() != TypeKind.NONE) {
            newClass._extends((AbstractJClass)toJType(superclass, environment));
View Full Code Here

Examples of com.helger.jcodemodel.JTypeVar.bound()

                methodAnnotator.annotate(executable.getAnnotationMirrors());
                for (TypeParameterElement parameter: executable.getTypeParameters()) {
                    JTypeVar typeVariable = method.generify(parameter.getSimpleName().toString());
                    methodEnvironment.put(typeVariable.name(), typeVariable);
                    for (TypeMirror type: parameter.getBounds()) {
                        typeVariable.bound((AbstractJClass)toJType(type, methodEnvironment));
                    }
                }
                method.type(toJType(executable.getReturnType(), methodEnvironment));
                for (TypeMirror type: executable.getThrownTypes()) {
                    AbstractJClass throwable = (AbstractJClass)toJType(type, methodEnvironment);
View Full Code Here

Examples of com.helger.jcodemodel.JTypeWildcard.bound()

        else {
            if (type.isArray()) {
                return substituteSpecialType(type.elementType(), selfType, resultType, exceptionType).array();
            } else if (type instanceof JTypeWildcard) {
                JTypeWildcard wildcard = (JTypeWildcard)type;
                AbstractJClass bound = substituteSpecialType(wildcard.bound(), selfType, resultType, exceptionType);
                return bound.wildcard(wildcard.boundMode());
            } else {
                List<AbstractJClass> typeArguments = new ArrayList<AbstractJClass>();
                for (AbstractJClass originalArgument: type.getTypeParameters()) {
                    typeArguments.add(substituteSpecialType(originalArgument, selfType, resultType, exceptionType));
View Full Code Here

Examples of com.niacin.annotation.Input.bound()

    Input ann = m.getAnnotation(Input.class);
    v.name = ann.name();
    v.current = Integer.parseInt(ann.initvalue());
    v.step = Integer.parseInt(ann.stepvalue());
    System.out.println(ann.stepvalue());
    if (ann.bound().length() > 0)
    {
      v.lbound = Integer.parseInt(ann.bound().split(",")[0].trim());
      v.ubound = Integer.parseInt(ann.bound().split(",")[1].trim());
    }
    else
View Full Code Here

Examples of com.niacin.annotation.Input.bound()

    v.current = Integer.parseInt(ann.initvalue());
    v.step = Integer.parseInt(ann.stepvalue());
    System.out.println(ann.stepvalue());
    if (ann.bound().length() > 0)
    {
      v.lbound = Integer.parseInt(ann.bound().split(",")[0].trim());
      v.ubound = Integer.parseInt(ann.bound().split(",")[1].trim());
    }
    else
    {
      v.lbound = -1;
View Full Code Here

Examples of com.niacin.annotation.Input.bound()

    v.step = Integer.parseInt(ann.stepvalue());
    System.out.println(ann.stepvalue());
    if (ann.bound().length() > 0)
    {
      v.lbound = Integer.parseInt(ann.bound().split(",")[0].trim());
      v.ubound = Integer.parseInt(ann.bound().split(",")[1].trim());
    }
    else
    {
      v.lbound = -1;
      v.ubound = -1;
View Full Code Here

Examples of kodkod.instance.Bounds.bound()

               
        for(Map.Entry<Relation, TupleSet> entry: trivialInstance.relationTuples().entrySet()) {
          final Relation r = entry.getKey();
         
          if (!translBounds.relations().contains(r)) {
            translBounds.bound(r, bounds.lowerBound(r), bounds.upperBound(r));
          }
         
          if (translBounds.lowerBound(r)!=translBounds.upperBound(r)) { // r may change
            if (entry.getValue().isEmpty()) {
              changes.add(r.some());
View Full Code Here

Examples of objot.container.Container.bound()

      @Override
      protected Object forBind(Class<?> c, Bind b) throws Exception
      {
        return c == Object.class ? b.obj(parent) : b.box == Long.class ? b.obj(9L)
          : b.mode(parent.bound(c) ? Inject.Parent.class : b.mode);
      }

      @Override
      protected Object forBind(Class<?> cc, AccessibleObject fp, Class<?> c,
        Type generic, Bind b) throws Exception
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.