Skip to content
Browse files

Fleshing out comments on JavaAccFlags.

  • Loading branch information...
1 parent 15bc39a commit 13bb4e5af4f2cfcbbee0ae590e0a5aed83ff50dc @paulp paulp committed Apr 1, 2013
Showing with 6 additions and 9 deletions.
  1. +6 −9 src/reflect/scala/reflect/internal/JavaAccFlags.scala
View
15 src/reflect/scala/reflect/internal/JavaAccFlags.scala
@@ -2,24 +2,21 @@
* Copyright 2005-2013 LAMP/EPFL
* @author Paul Phillips
*/
-
package scala.reflect
package internal
import java.lang.{ Class => jClass }
-import java.lang.reflect.{
- Member => jMember, Constructor => jConstructor, Field => jField, Method => jMethod,
- AnnotatedElement => jAnnotatedElement
-}
-import java.lang.reflect.Modifier
+import java.lang.reflect.{ Member => jMember, Constructor => jConstructor, Field => jField, Method => jMethod }
import JavaAccFlags._
import ClassfileConstants._
/** A value class which encodes the access_flags (JVMS 4.1)
* for a field, method, or class. The low 16 bits are the same
- * as those returned by java.lang.reflect.Member#getModifiers.
- * The high bits encode whether the access flags are associated
- * with a class, constructor, field, interface, or method.
+ * as those returned by java.lang.reflect.Member#getModifiers
+ * and found in the bytecode.
+ *
+ * The high bits encode whether the access flags are directly
+ * associated with a class, constructor, field, or method.
*/
final class JavaAccFlags private (val coded: Int) extends AnyVal {
private def has(mask: Int) = (flags & mask) != 0

0 comments on commit 13bb4e5

Please sign in to comment.
Something went wrong with that request. Please try again.