Package net.ftlines.metagen.processor.model

Examples of net.ftlines.metagen.processor.model.Visibility


    properties.peek().add(node);

    Element element = node.getAccessor();

    String type = node.getType().accept(new TypeResolver(), null);
    Visibility visibility = node.getVisibility();
    QualifiedName containerName = new QualifiedName(node.getContainer());
    try
    {
      int hasGetter = 0;
      if (node.getGetter() != null)
      {
        if (node.getGetter().getSimpleName().toString().startsWith("get"))
        {
          hasGetter = 1;
        }
        else
        {
          hasGetter = 2;
        }
      }
      String setterName = name(node.getSetter());
      String getterName = name(node.getGetter());
      String fieldName = name(node.getField());
      if (node.isDeprecated())
      {
        writer.line("@Deprecated");
      }
      writer.line("%s static final %s<%s,%s> %s = new %s(\"%s\", %s.class, %s, %s, %s);",
        visibility.getKeyword(), Constants.SINGULAR, containerName.getQualified(), type, node.getHandle(),
        Constants.SINGULAR, node.getName(), beans.peek().getName().getQualified(), fieldName, getterName,
        setterName);
    }
    catch (IOException e)
    {
View Full Code Here

TOP

Related Classes of net.ftlines.metagen.processor.model.Visibility

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.