diff options
author | paltherr <paltherr@epfl.ch> | 2004-03-15 22:04:21 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-03-15 22:04:21 +0000 |
commit | 2e3a472e95c64131fd1c79dd2aeeee3b6a2266b8 (patch) | |
tree | 454770551817e39a6bed0d9c61c40c3fef72d226 /sources | |
parent | 7417f70cc6d3d4a5efc14f20b47d022a457e6c7e (diff) | |
download | scala-2e3a472e95c64131fd1c79dd2aeeee3b6a2266b8.tar.gz scala-2e3a472e95c64131fd1c79dd2aeeee3b6a2266b8.tar.bz2 scala-2e3a472e95c64131fd1c79dd2aeeee3b6a2266b8.zip |
- Added method skipAttributes()
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/symtab/classfile/AttributeParser.java | 10 |
1 files changed, 10 insertions, 0 deletions
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'. */ |