/** * Parses an annotation value ({@code element_value}) attribute. * * @return {@code non-null;} the parsed constant value */ public Constant parseValueAttribute() { Constant result; try { result = parseValue(); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Parses an annotation value ({@code element_value}) attribute. * * @return {@code non-null;} the parsed constant value */ public Constant parseValueAttribute() { Constant result; try { result = parseValue(); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Parses a parameter annotation attribute. * * @param visibility {@code non-null;} visibility of the parsed annotations * @return {@code non-null;} the parsed list of lists of annotations */ public AnnotationsList parseParameterAttribute( AnnotationVisibility visibility) { AnnotationsList result; try { result = parseAnnotationsList(visibility); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Parses a parameter annotation attribute. * * @param visibility {@code non-null;} visibility of the parsed annotations * @return {@code non-null;} the parsed list of lists of annotations */ public AnnotationsList parseParameterAttribute( AnnotationVisibility visibility) { AnnotationsList result; try { result = parseAnnotationsList(visibility); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Parses an annotation attribute, per se. * * @param visibility {@code non-null;} visibility of the parsed annotations * @return {@code non-null;} the list of annotations read from the attribute * data */ public Annotations parseAnnotationAttribute( AnnotationVisibility visibility) { Annotations result; try { result = parseAnnotations(visibility); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Parses a parameter annotation attribute. * * @param visibility {@code non-null;} visibility of the parsed annotations * @return {@code non-null;} the parsed list of lists of annotations */ public AnnotationsList parseParameterAttribute( AnnotationVisibility visibility) { AnnotationsList result; try { result = parseAnnotationsList(visibility); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Parses a parameter annotation attribute. * * @param visibility {@code non-null;} visibility of the parsed annotations * @return {@code non-null;} the parsed list of lists of annotations */ public AnnotationsList parseParameterAttribute( AnnotationVisibility visibility) { AnnotationsList result; try { result = parseAnnotationsList(visibility); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Parses a parameter annotation attribute. * * @param visibility {@code non-null;} visibility of the parsed annotations * @return {@code non-null;} the parsed list of lists of annotations */ public AnnotationsList parseParameterAttribute( AnnotationVisibility visibility) { AnnotationsList result; try { result = parseAnnotationsList(visibility); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Parses an annotation attribute, per se. * * @param visibility {@code non-null;} visibility of the parsed annotations * @return {@code non-null;} the list of annotations read from the attribute * data */ public Annotations parseAnnotationAttribute( AnnotationVisibility visibility) { Annotations result; try { result = parseAnnotations(visibility); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Parses an annotation attribute, per se. * * @param visibility {@code non-null;} visibility of the parsed annotations * @return {@code non-null;} the list of annotations read from the attribute * data */ public Annotations parseAnnotationAttribute( AnnotationVisibility visibility) { Annotations result; try { result = parseAnnotations(visibility); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Parses an annotation value ({@code element_value}) attribute. * * @return {@code non-null;} the parsed constant value */ public Constant parseValueAttribute() { Constant result; try { result = parseValue(); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Parses an annotation value ({@code element_value}) attribute. * * @return {@code non-null;} the parsed constant value */ public Constant parseValueAttribute() { Constant result; try { result = parseValue(); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Parses an annotation value ({@code element_value}) attribute. * * @return {@code non-null;} the parsed constant value */ public Constant parseValueAttribute() { Constant result; try { result = parseValue(); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Parses an annotation value ({@code element_value}) attribute. * * @return {@code non-null;} the parsed constant value */ public Constant parseValueAttribute() { Constant result; try { result = parseValue(); if (input.available() != 0) { throw new ParseException("extra data in attribute"); } } catch (IOException ex) { // ByteArray.MyDataInputStream should never throw. throw new RuntimeException("shouldn't happen", ex); } return result; }
/** * Helper which will throw an exception if the given number of bytes * is not available to be read. * * @param requiredLength the number of required bytes */ private void requireLength(int requiredLength) throws IOException { if (input.available() < requiredLength) { throw new ParseException("truncated annotation attribute"); } }
/** * Helper which will throw an exception if the given number of bytes * is not available to be read. * * @param requiredLength the number of required bytes */ private void requireLength(int requiredLength) throws IOException { if (input.available() < requiredLength) { throw new ParseException("truncated annotation attribute"); } }
/** * Helper which will throw an exception if the given number of bytes * is not available to be read. * * @param requiredLength the number of required bytes */ private void requireLength(int requiredLength) throws IOException { if (input.available() < requiredLength) { throw new ParseException("truncated annotation attribute"); } }
/** * Helper which will throw an exception if the given number of bytes * is not available to be read. * * @param requiredLength the number of required bytes */ private void requireLength(int requiredLength) throws IOException { if (input.available() < requiredLength) { throw new ParseException("truncated annotation attribute"); } }
/** * Helper which will throw an exception if the given number of bytes * is not available to be read. * * @param requiredLength the number of required bytes */ private void requireLength(int requiredLength) throws IOException { if (input.available() < requiredLength) { throw new ParseException("truncated annotation attribute"); } }
/** * Helper which will throw an exception if the given number of bytes * is not available to be read. * * @param requiredLength the number of required bytes */ private void requireLength(int requiredLength) throws IOException { if (input.available() < requiredLength) { throw new ParseException("truncated annotation attribute"); } }