|
2 | 2 | * Copyright 2005-2013 LAMP/EPFL |
3 | 3 | * @author Paul Phillips |
4 | 4 | */ |
5 | | - |
6 | 5 | package scala.reflect |
7 | 6 | package internal |
8 | 7 |
|
9 | 8 | import java.lang.{ Class => jClass } |
10 | | -import java.lang.reflect.{ |
11 | | - Member => jMember, Constructor => jConstructor, Field => jField, Method => jMethod, |
12 | | - AnnotatedElement => jAnnotatedElement |
13 | | -} |
14 | | -import java.lang.reflect.Modifier |
| 9 | +import java.lang.reflect.{ Member => jMember, Constructor => jConstructor, Field => jField, Method => jMethod } |
15 | 10 | import JavaAccFlags._ |
16 | 11 | import ClassfileConstants._ |
17 | 12 |
|
18 | 13 | /** A value class which encodes the access_flags (JVMS 4.1) |
19 | 14 | * for a field, method, or class. The low 16 bits are the same |
20 | | - * as those returned by java.lang.reflect.Member#getModifiers. |
21 | | - * The high bits encode whether the access flags are associated |
22 | | - * with a class, constructor, field, interface, or method. |
| 15 | + * as those returned by java.lang.reflect.Member#getModifiers |
| 16 | + * and found in the bytecode. |
| 17 | + * |
| 18 | + * The high bits encode whether the access flags are directly |
| 19 | + * associated with a class, constructor, field, or method. |
23 | 20 | */ |
24 | 21 | final class JavaAccFlags private (val coded: Int) extends AnyVal { |
25 | 22 | private def has(mask: Int) = (flags & mask) != 0 |
|
0 commit comments