Java 类com.sun.tools.classfile.TypeAnnotation.Position 实例源码

项目:OpenJSharp    文件:TypeAnnotationWriter.java   
private void check(NoteKind kind, RuntimeTypeAnnotations_attribute attr) {
    if (attr == null)
        return;

    for (TypeAnnotation anno: attr.annotations) {
        Position p = anno.position;
        Note note = null;
        if (p.offset != -1)
            addNote(p.offset, note = new Note(kind, anno));
        if (p.lvarOffset != null) {
            for (int i = 0; i < p.lvarOffset.length; i++) {
                if (note == null)
                    note = new Note(kind, anno);
                addNote(p.lvarOffset[i], note);
            }
        }
    }
}
项目:openjdk-jdk10    文件:TypeAnnotationWriter.java   
private void check(NoteKind kind, RuntimeTypeAnnotations_attribute attr) {
    if (attr == null)
        return;

    for (TypeAnnotation anno: attr.annotations) {
        Position p = anno.position;
        Note note = null;
        if (p.offset != -1)
            addNote(p.offset, note = new Note(kind, anno));
        if (p.lvarOffset != null) {
            for (int i = 0; i < p.lvarOffset.length; i++) {
                if (note == null)
                    note = new Note(kind, anno);
                addNote(p.lvarOffset[i], note);
            }
        }
    }
}
项目:openjdk9    文件:TypeAnnotationWriter.java   
private void check(NoteKind kind, RuntimeTypeAnnotations_attribute attr) {
    if (attr == null)
        return;

    for (TypeAnnotation anno: attr.annotations) {
        Position p = anno.position;
        Note note = null;
        if (p.offset != -1)
            addNote(p.offset, note = new Note(kind, anno));
        if (p.lvarOffset != null) {
            for (int i = 0; i < p.lvarOffset.length; i++) {
                if (note == null)
                    note = new Note(kind, anno);
                addNote(p.lvarOffset[i], note);
            }
        }
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:TypeAnnotationWriter.java   
private void check(NoteKind kind, RuntimeTypeAnnotations_attribute attr) {
    if (attr == null)
        return;

    for (TypeAnnotation anno: attr.annotations) {
        Position p = anno.position;
        Note note = null;
        if (p.offset != -1)
            addNote(p.offset, note = new Note(kind, anno));
        if (p.lvarOffset != null) {
            for (int i = 0; i < p.lvarOffset.length; i++) {
                if (note == null)
                    note = new Note(kind, anno);
                addNote(p.lvarOffset[i], note);
            }
        }
    }
}
项目:jsr308-langtools    文件:TypeAnnotationWriter.java   
private void check(NoteKind kind, RuntimeTypeAnnotations_attribute attr) {
    if (attr == null)
        return;

    for (TypeAnnotation anno: attr.annotations) {
        Position p = anno.position;
        Note note = null;
        if (p.offset != -1)
            addNote(p.offset, note = new Note(kind, anno));
        if (p.lvarOffset != null) {
            for (int i = 0; i < p.lvarOffset.length; i++) {
                if (note == null)
                    note = new Note(kind, anno);
                addNote(p.lvarOffset[i], note);
            }
        }
    }
}
项目:infobip-open-jdk-8    文件:TypeAnnotationWriter.java   
private void check(NoteKind kind, RuntimeTypeAnnotations_attribute attr) {
    if (attr == null)
        return;

    for (TypeAnnotation anno: attr.annotations) {
        Position p = anno.position;
        Note note = null;
        if (p.offset != -1)
            addNote(p.offset, note = new Note(kind, anno));
        if (p.lvarOffset != null) {
            for (int i = 0; i < p.lvarOffset.length; i++) {
                if (note == null)
                    note = new Note(kind, anno);
                addNote(p.lvarOffset[i], note);
            }
        }
    }
}
项目:OLD-OpenJDK8    文件:TypeAnnotationWriter.java   
private void check(NoteKind kind, RuntimeTypeAnnotations_attribute attr) {
    if (attr == null)
        return;

    for (TypeAnnotation anno: attr.annotations) {
        Position p = anno.position;
        Note note = null;
        if (p.offset != -1)
            addNote(p.offset, note = new Note(kind, anno));
        if (p.lvarOffset != null) {
            for (int i = 0; i < p.lvarOffset.length; i++) {
                if (note == null)
                    note = new Note(kind, anno);
                addNote(p.lvarOffset[i], note);
            }
        }
    }
}
项目:jdk8u-jdk    文件:ClassReader.java   
private void parseTypeAnnotations(TypeAnnotation pa, Element p) {
    Element pta = new Element("RuntimeVisibleTypeAnnotation");
    p.add(pta);
    Position pos = pa.position;
    parsePosition(pos, pta);
    parseAnnotation(pa.annotation, pta);
}
项目:openjdk-jdk10    文件:ClassReader.java   
private void parseTypeAnnotations(TypeAnnotation pa, Element p) {
    Element pta = new Element("RuntimeVisibleTypeAnnotation");
    p.add(pta);
    Position pos = pa.position;
    parsePosition(pos, pta);
    parseAnnotation(pa.annotation, pta);
}
项目:openjdk9    文件:ClassReader.java   
private void parseTypeAnnotations(TypeAnnotation pa, Element p) {
    Element pta = new Element("RuntimeVisibleTypeAnnotation");
    p.add(pta);
    Position pos = pa.position;
    parsePosition(pos, pta);
    parseAnnotation(pa.annotation, pta);
}
项目:jdk8u_jdk    文件:ClassReader.java   
private void parseTypeAnnotations(TypeAnnotation pa, Element p) {
    Element pta = new Element("RuntimeVisibleTypeAnnotation");
    p.add(pta);
    Position pos = pa.position;
    parsePosition(pos, pta);
    parseAnnotation(pa.annotation, pta);
}
项目:lookaside_java-1.8.0-openjdk    文件:ClassReader.java   
private void parseTypeAnnotations(TypeAnnotation pa, Element p) {
    Element pta = new Element("RuntimeVisibleTypeAnnotation");
    p.add(pta);
    Position pos = pa.position;
    parsePosition(pos, pta);
    parseAnnotation(pa.annotation, pta);
}
项目:infobip-open-jdk-8    文件:ClassReader.java   
private void parseTypeAnnotations(TypeAnnotation pa, Element p) {
    Element pta = new Element("RuntimeVisibleTypeAnnotation");
    p.add(pta);
    Position pos = pa.position;
    parsePosition(pos, pta);
    parseAnnotation(pa.annotation, pta);
}
项目:jdk8u-dev-jdk    文件:ClassReader.java   
private void parseTypeAnnotations(TypeAnnotation pa, Element p) {
    Element pta = new Element("RuntimeVisibleTypeAnnotation");
    p.add(pta);
    Position pos = pa.position;
    parsePosition(pos, pta);
    parseAnnotation(pa.annotation, pta);
}
项目:OLD-OpenJDK8    文件:ClassReader.java   
private void parseTypeAnnotations(TypeAnnotation pa, Element p) {
    Element pta = new Element("RuntimeVisibleTypeAnnotation");
    p.add(pta);
    Position pos = pa.position;
    parsePosition(pos, pta);
    parseAnnotation(pa.annotation, pta);
}