Examples of Name


Examples of com.asakusafw.dmdl.thundergate.view.model.Name

                        null),
                Arrays.<Name>asList(n("t1.val1"), n("t1.val2")))));
    }

    private Name n(String name) {
        return new Name(name);
    }
View Full Code Here

Examples of com.asakusafw.modelgen.view.model.Name

    private List<View> sort() {
        Map<Name, View> map = new HashMap<Name, View>();
        Graph<Name> dependencies = Graphs.newInstance();
        for (View view : added) {
            Name name = view.ast.name;
            map.put(name, view);
            for (Name dependTo : view.ast.getDependencies()) {
                dependencies.addEdge(name, dependTo);
            }
        }
View Full Code Here

Examples of com.asakusafw.utils.java.model.syntax.Name

                slot.getName(), moduleId);
        CompilationUnit source;
        Engine engine = new Engine(environment, moduleId, slot, prologue);
        source = engine.generate();
        environment.emit(source);
        Name packageName = source.getPackageDeclaration().getName();
        SimpleName simpleName = source.getTypeDeclarations().get(0).getName();
        Name name = environment.getModelFactory().newQualifiedName(packageName, simpleName);
        LOG.debug("Mapper for \"{}\" is {}",
                slot.getName(),
                name);
        return new CompiledType(name);
    }
View Full Code Here

Examples of com.caucho.quercus.annotation.Name

  private static String getName(Method method)
  {
    String name;

    Name nameAnn = method.getAnnotation(Name.class);

    if (nameAnn != null)
      name = nameAnn.value();
    else
      name = method.getName();

    return name;
  }
View Full Code Here

Examples of com.cedarsoft.unit.Name

   * @param unitType the unit type
   * @return the name
   */
  @Nonnull
  public static String getName( @Nonnull Class<? extends Annotation> unitType ) {
    Name name = unitType.getAnnotation( Name.class );
    if ( name == null ) {
      throw new IllegalArgumentException( "Missing annotation " + Name.class.getName() + " for " + unitType );
    }

    return name.value();
  }
View Full Code Here

Examples of com.codereligion.hammock.compiler.model.Name

            name = new ClosureName(annotation.value());
        }
       
        final boolean isStatic = method.getModifiers().contains(Modifier.STATIC);

        final Name parameterType;

        if (isStatic) {
            final VariableElement firstParameter = method.getParameters().get(0);
            parameterType = new Name(firstParameter.asType().toString());
        } else {
            parameterType = new Name(typeElement.getQualifiedName().toString());
        }

        final Closure closure;

        if (method.getReturnType().getKind() == TypeKind.BOOLEAN) {
            closure = new Closure(name, delegate, parameterType, isStatic, annotation.nullsafe());
        } else {
            final Name returnType = new Name(method.getReturnType().toString());
            closure = new Closure(name, delegate, parameterType, returnType, isStatic, annotation.nullsafe());
        }

        final Type type = storage.apply(typeElement);
        Preconditions.checkNotNull(type, "No type found for %s", typeElement);
View Full Code Here

Examples of com.codereligion.hammock.compiler.model.api.Name

    private void parse(ExecutableElement method, Type type) {
        final TypeElement typeElement = (TypeElement) method.getEnclosingElement();

        final Functional functional = method.getAnnotation(Functional.class);
        final ClosureName name = new StringClosureName(method.getSimpleName().toString());
        final Name parameterType = new StringName(typeElement.getQualifiedName().toString());

        final Closure closure;
        if (method.getReturnType().getKind() == TypeKind.BOOLEAN) {
            closure = new BaseClosure(name, parameterType, functional.nullsafe());
        } else {
            final Name returnType = new StringName(method.getReturnType().toString());
            closure = new BaseClosure(name, parameterType, returnType, functional.nullsafe());
        }

        type.getClosures().add(closure);
    }
View Full Code Here

Examples of com.colorfulsoftware.atom.Name

      }

      try {
        List<Attribute> attrs = new LinkedList<Attribute>();
        attrs.add(feedDoc.buildAttribute("goofy", "attrValue"));
        feedDoc.buildAuthor(new Name("You"), null, null, attrs, null);
        fail("should not get here;");
      } catch (Exception e) {
        assertTrue(e instanceof AtomSpecException);
        assertEquals(e.getMessage(),
            "Unsupported attribute goofy for this Atom Person Construct.");
View Full Code Here

Examples of com.colorfulsoftware.rss.Name

    } catch (RSSpectException r) {
      assertEquals(r.getMessage(), "name SHOULD NOT be blank.");
    }

    try {
      Name name = rssDoc.buildName("someone special");
      assertNotNull(name);
      assertEquals(name.getName(), "someone special");
    } catch (RSSpectException r) {
      fail("should not get here.");
    }
  }
View Full Code Here

Examples of com.cuubez.visualizer.annotation.Name

        return false;
    }

    private boolean scanName(SubResource subResource, Method method) {

        Name name = method.getAnnotation(Name.class);

        if (name != null) {

            subResource.setName(name.value());
            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.