From 2e3a472e95c64131fd1c79dd2aeeee3b6a2266b8 Mon Sep 17 00:00:00 2001 From: paltherr Date: Mon, 15 Mar 2004 22:04:21 +0000 Subject: - Added method skipAttributes() --- sources/scalac/symtab/classfile/AttributeParser.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sources/scalac') diff --git a/sources/scalac/symtab/classfile/AttributeParser.java b/sources/scalac/symtab/classfile/AttributeParser.java index 1eafb04eea..f6477eb3f5 100644 --- a/sources/scalac/symtab/classfile/AttributeParser.java +++ b/sources/scalac/symtab/classfile/AttributeParser.java @@ -69,6 +69,16 @@ public class AttributeParser implements ClassfileConstants { return BAD_ATTR; } + /** skip all attributes. + */ + public void skipAttributes() { + char nattr = in.nextChar(); + for (int i = 0; i < nattr; i++) { + in.skip(2); + in.skip(in.nextInt()); + } + } + /** read all attributes associated with symbol 'sym' which are * contained in 'attrs'. */ -- cgit v1.2.3