Java 类com.sun.tools.classfile.DefaultAttribute 实例源码

项目:OpenJSharp    文件:AttributeWriter.java   
public Void visitDefault(DefaultAttribute attr, Void ignore) {
    if (attr.reason != null) {
        report(attr.reason);
    }
    byte[] data = attr.info;
    int i = 0;
    int j = 0;
    print("  ");
    try {
        print(attr.getName(constant_pool));
    } catch (ConstantPoolException e) {
        report(e);
        print("attribute name = #" + attr.attribute_name_index);
    }
    print(": ");
    println("length = 0x" + toHex(attr.info.length));

    print("   ");

    while (i < data.length) {
        print(toHex(data[i], 2));

        j++;
        if (j == 16) {
            println();
            print("   ");
            j = 0;
        } else {
            print(" ");
        }
        i++;
    }
    println();
    return null;
}
项目:openjdk-jdk10    文件:AttributeWriter.java   
@Override
public Void visitDefault(DefaultAttribute attr, Void ignore) {
    if (attr.reason != null) {
        report(attr.reason);
    }
    byte[] data = attr.info;
    int i = 0;
    int j = 0;
    print("  ");
    try {
        print(attr.getName(constant_pool));
    } catch (ConstantPoolException e) {
        report(e);
        print("attribute name = #" + attr.attribute_name_index);
    }
    print(": ");
    println("length = 0x" + toHex(attr.info.length));

    print("   ");

    while (i < data.length) {
        print(toHex(data[i], 2));

        j++;
        if (j == 16) {
            println();
            print("   ");
            j = 0;
        } else {
            print(" ");
        }
        i++;
    }
    println();
    return null;
}
项目:openjdk9    文件:AttributeWriter.java   
@Override
public Void visitDefault(DefaultAttribute attr, Void ignore) {
    if (attr.reason != null) {
        report(attr.reason);
    }
    byte[] data = attr.info;
    int i = 0;
    int j = 0;
    print("  ");
    try {
        print(attr.getName(constant_pool));
    } catch (ConstantPoolException e) {
        report(e);
        print("attribute name = #" + attr.attribute_name_index);
    }
    print(": ");
    println("length = 0x" + toHex(attr.info.length));

    print("   ");

    while (i < data.length) {
        print(toHex(data[i], 2));

        j++;
        if (j == 16) {
            println();
            print("   ");
            j = 0;
        } else {
            print(" ");
        }
        i++;
    }
    println();
    return null;
}
项目:lookaside_java-1.8.0-openjdk    文件:AttributeWriter.java   
public Void visitDefault(DefaultAttribute attr, Void ignore) {
    if (attr.reason != null) {
        report(attr.reason);
    }
    byte[] data = attr.info;
    int i = 0;
    int j = 0;
    print("  ");
    try {
        print(attr.getName(constant_pool));
    } catch (ConstantPoolException e) {
        report(e);
        print("attribute name = #" + attr.attribute_name_index);
    }
    print(": ");
    println("length = 0x" + toHex(attr.info.length));

    print("   ");

    while (i < data.length) {
        print(toHex(data[i], 2));

        j++;
        if (j == 16) {
            println();
            print("   ");
            j = 0;
        } else {
            print(" ");
        }
        i++;
    }
    println();
    return null;
}
项目:jsr308-langtools    文件:AttributeWriter.java   
public Void visitDefault(DefaultAttribute attr, Void ignore) {
    if (attr.reason != null) {
        report(attr.reason);
    }
    byte[] data = attr.info;
    int i = 0;
    int j = 0;
    print("  ");
    try {
        print(attr.getName(constant_pool));
    } catch (ConstantPoolException e) {
        report(e);
        print("attribute name = #" + attr.attribute_name_index);
    }
    print(": ");
    println("length = 0x" + toHex(attr.info.length));

    print("   ");

    while (i < data.length) {
        print(toHex(data[i], 2));

        j++;
        if (j == 16) {
            println();
            print("   ");
            j = 0;
        } else {
            print(" ");
        }
        i++;
    }
    println();
    return null;
}
项目:infobip-open-jdk-8    文件:AttributeWriter.java   
public Void visitDefault(DefaultAttribute attr, Void ignore) {
    if (attr.reason != null) {
        report(attr.reason);
    }
    byte[] data = attr.info;
    int i = 0;
    int j = 0;
    print("  ");
    try {
        print(attr.getName(constant_pool));
    } catch (ConstantPoolException e) {
        report(e);
        print("attribute name = #" + attr.attribute_name_index);
    }
    print(": ");
    println("length = 0x" + toHex(attr.info.length));

    print("   ");

    while (i < data.length) {
        print(toHex(data[i], 2));

        j++;
        if (j == 16) {
            println();
            print("   ");
            j = 0;
        } else {
            print(" ");
        }
        i++;
    }
    println();
    return null;
}
项目:openjdk-source-code-learn    文件:AttributeWriter.java   
public Void visitDefault(DefaultAttribute attr, Void ignore) {
    byte[] data = attr.info;
    int i = 0;
    int j = 0;
    print("  ");
    try {
        print(attr.getName(constant_pool));
    } catch (ConstantPoolException e) {
        report(e);
        print("attribute name = #" + attr.attribute_name_index);
    }
    print(": ");
    println("length = 0x" + toHex(attr.info.length));

    print("   ");

    while (i < data.length) {
        print(toHex(data[i], 2));

        j++;
        if (j == 16) {
            println();
            print("   ");
            j = 0;
        } else {
            print(" ");
        }
        i++;
    }
    println();
    return null;
}
项目:OLD-OpenJDK8    文件:AttributeWriter.java   
public Void visitDefault(DefaultAttribute attr, Void ignore) {
    if (attr.reason != null) {
        report(attr.reason);
    }
    byte[] data = attr.info;
    int i = 0;
    int j = 0;
    print("  ");
    try {
        print(attr.getName(constant_pool));
    } catch (ConstantPoolException e) {
        report(e);
        print("attribute name = #" + attr.attribute_name_index);
    }
    print(": ");
    println("length = 0x" + toHex(attr.info.length));

    print("   ");

    while (i < data.length) {
        print(toHex(data[i], 2));

        j++;
        if (j == 16) {
            println();
            print("   ");
            j = 0;
        } else {
            print(" ");
        }
        i++;
    }
    println();
    return null;
}
项目:s4j    文件:AttributeWriter.java   
public Void visitDefault(DefaultAttribute attr, Void ignore) {
    byte[] data = attr.info;
    int i = 0;
    int j = 0;
    print("  ");
    try {
        print(attr.getName(constant_pool));
    } catch (ConstantPoolException e) {
        report(e);
        print("attribute name = #" + attr.attribute_name_index);
    }
    print(": ");
    println("length = 0x" + toHex(attr.info.length));

    print("   ");

    while (i < data.length) {
        print(toHex(data[i], 2));

        j++;
        if (j == 16) {
            println();
            print("   ");
            j = 0;
        } else {
            print(" ");
        }
        i++;
    }
    println();
    return null;
}
项目:jdk7-langtools    文件:AttributeWriter.java   
public Void visitDefault(DefaultAttribute attr, Void ignore) {
    byte[] data = attr.info;
    int i = 0;
    int j = 0;
    print("  ");
    try {
        print(attr.getName(constant_pool));
    } catch (ConstantPoolException e) {
        report(e);
        print("attribute name = #" + attr.attribute_name_index);
    }
    print(": ");
    println("length = 0x" + toHex(attr.info.length));

    print("   ");

    while (i < data.length) {
        print(toHex(data[i], 2));

        j++;
        if (j == 16) {
            println();
            print("   ");
            j = 0;
        } else {
            print(" ");
        }
        i++;
    }
    println();
    return null;
}
项目:javap    文件:AttributeWriter.java   
public Void visitDefault(DefaultAttribute attr, Void ignore) {
    byte[] data = attr.info;
    int i = 0;
    int j = 0;
    print("  ");
    try {
        print(attr.getName(constant_pool));
    } catch (ConstantPoolException e) {
        report(e);
        print("attribute name = #" + attr.attribute_name_index);
    }
    print(": ");
    println("length = 0x" + toHex(attr.info.length));

    print("   ");

    while (i < data.length) {
        print(toHex(data[i], 2));

        j++;
        if (j == 16) {
            println();
            print("   ");
            j = 0;
        } else {
            print(" ");
        }
        i++;
    }
    println();
    return null;
}
项目:openjdk-icedtea7    文件:AttributeWriter.java   
public Void visitDefault(DefaultAttribute attr, Void ignore) {
    byte[] data = attr.info;
    int i = 0;
    int j = 0;
    print("  ");
    try {
        print(attr.getName(constant_pool));
    } catch (ConstantPoolException e) {
        report(e);
        print("attribute name = #" + attr.attribute_name_index);
    }
    print(": ");
    println("length = 0x" + toHex(attr.info.length));

    print("   ");

    while (i < data.length) {
        print(toHex(data[i], 2));

        j++;
        if (j == 16) {
            println();
            print("   ");
            j = 0;
        } else {
            print(" ");
        }
        i++;
    }
    println();
    return null;
}
项目:INF5000-StaticProxy    文件:AttributeWriter.java   
public Void visitDefault(DefaultAttribute attr, Void ignore) {
    byte[] data = attr.info;
    int i = 0;
    int j = 0;
    print("  ");
    try {
        print(attr.getName(constant_pool));
    } catch (ConstantPoolException e) {
        report(e);
        print("attribute name = #" + attr.attribute_name_index);
    }
    print(": ");
    println("length = 0x" + toHex(attr.info.length));

    print("   ");

    while (i < data.length) {
        print(toHex(data[i], 2));

        j++;
        if (j == 16) {
            println();
            print("   ");
            j = 0;
        } else {
            print(" ");
        }
        i++;
    }
    println();
    return null;
}