Package rocket.generator.rebind

Examples of rocket.generator.rebind.GeneratorContext.debug()


  protected Set<TypeMatcher> loadBlackListFromPackage(final Package packagee) {
    Checker.notNull("parameter:package", packagee);

    final GeneratorContext context = this.getGeneratorContext();
    context.delayedBranch();
    context.debug(packagee.getName());

    final Set<TypeMatcher> expressions = new HashSet<TypeMatcher>();

    final String fileName = this.getResourceName(packagee, SerializationConstants.BLACKLIST_FILENAME);
    InputStream inputStream = null;
View Full Code Here


          // skip empty / comment lines...
          final String typeName = line.trim();
          if (Tester.isNullOrEmpty(typeName) || typeName.startsWith("#")) {
            continue;
          }
          context.debug(line);

          final TypeMatcher typeNameMatcher = TypeMatcherFactory.createTypeNameMatcher(typeName);
          expressions.add(typeNameMatcher);
        }
View Full Code Here

        String message = type.getName();
        if (null != type1) {
          message = message + " = " + type1.getName();
        }
        context.debug(message);
      }
    }
  }

  protected Set<Type> getReadableTypesListFromAnnotation(final Type type) {
View Full Code Here

    Checker.notNull("parameter:type", type);
    Checker.notEmpty("parameter:annotation", annotation);

    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.debug(title);

    final TreeSet<Type> types = new TreeSet<Type>(TypeComparator.INSTANCE);

    final Iterator<String> typeNames = type.getMetadataValues(annotation).iterator();
    while (typeNames.hasNext()) {
View Full Code Here

      if (null == listedType) {
        this.throwUnableToFindAnnotatedType(typeName, type);
      }

      types.add(listedType);
      context.debug(listedType.getName());
    }

    context.unbranch();
    return types;
  }
View Full Code Here

      protected void visitType(final Type type) {
        if (false == SerializationFactoryGenerator.this.isOrHasSerializableSubType(type)) {
          SerializationFactoryGenerator.this.throwEncounteredUnserializableType(type);
        }
        context.branch();
        context.debug(type.getName());
        super.visitType(type);
        context.unbranch();
      }

      @Override
View Full Code Here

      }

      @Override
      protected void visitSuperType(final Type superType) {
        context.branch();
        context.debug(superType.getName());
        super.visitSuperType(superType);
        context.unbranch();
      }

      @Override
View Full Code Here

      }

      @Override
      protected void visitSubType(final Type subType) {
        context.branch();
        context.debug(subType.getName());
        super.visitSubType(subType);
        context.unbranch();
      }

      @Override
View Full Code Here

      @Override
      protected void visitField(final Field field) {
        Checker.notNull("parameter:field", field);

        context.branch();
        context.debug("Field: " + field.getName());

        while (true) {
          final Type fieldType = field.getType();

          if (field.isFinal()) {
View Full Code Here

          if (list.equals(fieldType)) {
            this.processInterface(fieldType);

            final Type elementType = SerializationFactoryGenerator.this.getTypeFromAnnotation(field);
            context.debug(elementType + " (List)");
            this.visitType(elementType);
            break;
          }
          if (set.equals(fieldType)) {
            this.processInterface(fieldType);
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.