Package rocket.generator.rebind.packagee

Examples of rocket.generator.rebind.packagee.Package


      runtimeName.append("L");
    }

    // insert the name.
    final String name = componentType.getRuntimeName();
    final Package packagee = componentType.getPackage();
    final String packageName = null == packagee ? null : packagee.getName();
    String nameLessPackageName = name;

    if (false == Tester.isNullOrEmpty(packageName)) {
      runtimeName.append(packageName);
      runtimeName.append('.');
View Full Code Here


    final SubTypesVisitor packageVisitor = new SubTypesVisitor() {

      @Override
      protected boolean visit(final Type type) {
        final Package packagee = type.getPackage();
        if (false == this.packages.contains(packagee)) {
          this.packages.add(packagee);

          final Set<TypeMatcher> loaded = SerializationFactoryGenerator.this.loadBlackListFromPackage(packagee);
          blackLists.addAll(loaded);
View Full Code Here

   
    this.setParameterisedTypes( this.createParameterisedTypes() );
  }

  public Package getPackage() {
    Package packagee = null;

    String name = this.getName();
    while (true) {
      final int lastDot = name.lastIndexOf('.');
      if (-1 == lastDot) {
View Full Code Here

    return initializer;
  }

  public String getSimpleName() {
    String name = this.getName();
    final Package packagee = this.getPackage();
    return packagee.isUnnamed() ? name : name.substring(packagee.getName().length() + 1);
  }
View Full Code Here

   * to the use of dollar signs "$" within inner classes rather than dot ".".
   */
  public String getRuntimeName() {
    final StringBuffer runtimeName = new StringBuffer();
    final String name = this.getName();
    final Package packagee = this.getPackage();
    final String packageName = null == packagee ? null : packagee.getName();
    String nameLessPackageName = name;

    if (false == Tester.isNullOrEmpty(packageName)) {
      runtimeName.append(packageName);
      runtimeName.append('.');
View Full Code Here

   * @param derivedType
   */
  public void start(final Type derivedType) {
    Checker.notNull("parameter:derivedType", derivedType);

    final Package packagee = derivedType.getPackage();
    final Set<Method> visited = this.createVisited();

    final AllMethodsVisitor visitor = new AllMethodsVisitor() {

      @Override
      protected boolean visit(final Method method) {
        boolean skipRemaining = false;
        while (true) {
          if (method.isStatic()) {
            break;
          }
          final Visibility visibility = method.getVisibility();
          if (Visibility.PRIVATE == visibility) {
            break;
          }
          // different pacakge skip this method.
          if (Visibility.PACKAGE_PRIVATE == visibility) {
            final Type enclosingType = method.getEnclosingType();
            if (false == packagee.equals(enclosingType.getPackage())) {
              break;
            }
          }

          if (false == visited.contains(method)) {
View Full Code Here

   * @return The located package or null if it wasnt found
   */
  public Package findPackage(final String name) {
    Checker.notEmpty("parameter:name", name);

    Package packagee = (Package) this.getPackages().get(name);
    if (null == packagee) {
      packagee = this.createPackage(name);
      if (null != packagee) {
        this.addPackage(packagee);
      }
View Full Code Here

    }
    return packagee;
  }

  public Package getPackage(final String name) {
    final Package packagee = this.findPackage(name);
    if (null == packagee) {
      throwPackageNotFoundException(name);
    }
    return packagee;
  }
View Full Code Here

TOP

Related Classes of rocket.generator.rebind.packagee.Package

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.