Examples of EnumTransformationType


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

      final boolean visible) {
    /*
     * this is need because class object for the byte code is not defined at
     * loading, so it is not possible to use Class#isAnnotationPresent
     */
    final EnumTransformationType fromDesc = TRANSFORMATION_TYPE_FROM_ANNOTATION
        .transformationType(desc);
    if (fromDesc != null) {
      transformationType = fromDesc;
    }
    return null;
View Full Code Here

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

  }

  @Override
  public AnnotationVisitor visitAnnotation(final String desc,
      final boolean visible) {
    final EnumTransformationType fromDesc = TRANSFORMATION_TYPE_FROM_ANNOTATION
        .transformationType(desc);
    if (fromDesc != null) {
      transformationType = fromDesc;
    }
    final AnnotationVisitor annotationVisitor = methodVisitor
View Full Code Here

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

  }

  @Override
  public AnnotationVisitor visitAnnotation(final String desc,
      final boolean visible) {
    final EnumTransformationType fromDesc = TRANSFORMATION_TYPE_FROM_ANNOTATION
        .transformationType(desc);
    if (fromDesc != null) {
      methodMap.setTransformationType(methodName, methodDesc, fromDesc);
    }
    return null;
View Full Code Here

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

    final boolean nativeAccess = (access & ACC_NATIVE) == ACC_NATIVE;
    final boolean skipObjectMethod = "finalize".equals(name)
        || "getClass".equals(name) || "notify".equals(name)
        || "notifyAll".equals(name) || "wait".equals(name);

    EnumTransformationType methodTransformationType = methodMap
        .getTransformationType(name, desc);
    if (methodTransformationType == null) {
      methodTransformationType = node.transformationType(name);
      if (methodTransformationType == null) {
        methodTransformationType = transformationType;
View Full Code Here

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

        if ("*".equals(keyMethodName)) {
          methodName = null;
        } else {
          methodName = keyMethodName;
        }
        final EnumTransformationType transformationType = transformationType(
            keyMethodName, value, false/* it is for method */);
        packageMgr.addMethod(splitedKey, 1, splitedKey.length - 1,
            methodName, transformationType);

      } else {
View Full Code Here

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

  }

  private void classSetup(final String key, final String[] splitedKey,
      final int beginIndex, final int endIndex, final String value)
      throws IOException {
    final EnumTransformationType transformationType = transformationType(
        key, value, true);
    packageMgr.addPackage(splitedKey, beginIndex, endIndex,
        transformationType);
  }
View Full Code Here

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

        transformationType);
  }

  private EnumTransformationType transformationType(final String key,
      final String value, final boolean forClass) throws IOException {
    final EnumTransformationType transformationType;
    if ("off".equals(value)) {
      transformationType = EnumTransformationType.NONE;
    } else if (forClass && "on".equals(value)) {
      transformationType = EnumTransformationType.STORABLE;
    } else if (!forClass && "on".equals(value)) {
View Full Code Here

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

   * @return transformed code
   */
  public byte[] generate(final String className, final byte[] originalCode,
      final int off, final int len) {

    final EnumTransformationType transformationTypeFromProperties = transformAttribute(className);
    final ClassReader classReader = new ClassReader(originalCode, off, len);
    final IMethodMap methodMap = new MethodMap();
    final Set<String> syntheticFieldSet = new TreeSet<String>();
    final ClassVisitorForStorable classVisitorForStorable = new ClassVisitorForStorable();
    classVisitorForStorable.setMethodMap(methodMap, syntheticFieldSet);
View Full Code Here

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

   */
  EnumTransformationType transformAttribute(// NOPMD
      final String internalClassNameParam) {
    final String internalClassName = internalClassNameParam.replace('/',
        '.');
    final EnumTransformationType transformAttribute;
    final String[] split = internalClassName.split(POINT_REGEX);
    if (split.length == 1) {
      // FIXMELUC ?java agent: default package storable: not by tests,
      // confirm
      transformAttribute = EnumTransformationType.STORABLE;
View Full Code Here

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

  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
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.