Package net.sf.joafip.store.entity.bytecode.agent

Examples of net.sf.joafip.store.entity.bytecode.agent.PackageNode


    if (transformationAttribute == null) {
      transformationAttribute = transformationTypeFromProperties;
    }

    final String[] splitedClassName = className.split(POINT_REGEX);
    final PackageNode node = packageMgr.addPackage(splitedClassName, 0,
        splitedClassName.length, transformationAttribute);

    byte[] code = null;
    if (EnumTransformationType.NONE.equals(transformationAttribute)
        && !methodMap.hasMethodToTransform()) {
View Full Code Here


    return addPackage(path, 0, path.length, transformAttribute);
  }

  public PackageNode addPackage(final String[] path, final int beginIndex,
      final int endIndex, final EnumTransformationType transformAttribute) {
    final PackageNode currentNode = addPackage(path, beginIndex, endIndex);
    currentNode.setTransformAttribute(transformAttribute);
    return currentNode;
  }
View Full Code Here

    return currentNode;
  }

  private PackageNode addPackage(final String[] path, final int beginIndex,
      final int endIndex) {
    PackageNode currentNode = root;
    for (int index = beginIndex; index < endIndex; index++) {
      final String name = path[index];
      PackageNode child = currentNode.getChild(name);
      if (child == null) {
        child = new PackageNode(name);// NOPMD
        currentNode.addChild(child);
      }
      currentNode = child;
    }
    return currentNode;
View Full Code Here

  }

  public void addMethod(final String[] path, final int beginIndex,
      final int endIndex, final String methodName,
      final EnumTransformationType transformationType) {
    final PackageNode currentNode = addPackage(path, beginIndex, endIndex);
    currentNode.addMethod(methodName, transformationType);
  }
View Full Code Here

  }

  public EnumTransformationType transformAttribute(
      final String[] classNamePath) {
    final int length = classNamePath.length;
    PackageNode currentNode = root;
    EnumTransformationType transformAttribute = root
        .getTransformAttribute();
    for (int index = 0; currentNode != null && index < length; index++) {
      final String name = classNamePath[index];
      final PackageNode child = currentNode.getChild(name);
      if (child != null) {
        final EnumTransformationType childTransformAttribute = child
            .getTransformAttribute();
        if (childTransformAttribute != null) {
          transformAttribute = childTransformAttribute;
        }
      }
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.entity.bytecode.agent.PackageNode

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.