object ACC_MODULE extends AccessFlag
Identifies a class as defining a Java 9 module.
- Source
- AccessFlag.scala
- Note
From the specification: "If ACC_MODULE is set in ClassFile.access_flags, then no other flag in
,ClassFile.access_flags
may be set." The name of the class has to be "/module-info".super_class, interfaces_count, fields_count, methods_count: zero. I.e., a module does not have a super class.
- Alphabetic
- By Inheritance
- ACC_MODULE
- AccessFlag
- PrimitiveAccessFlagsMatcher
- AccessFlagsMatcher
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def &&(right: AccessFlagsMatcher): AccessFlagsMatcher
Creates a new matcher that matches
accessFlags
vectors where all flags defined by this matcher and the given matcher have to be defined.Creates a new matcher that matches
accessFlags
vectors where all flags defined by this matcher and the given matcher have to be defined.- Definition Classes
- PrimitiveAccessFlagsMatcher → AccessFlagsMatcher
- def isSet(accessFlags: Int): Boolean
Checks if
this
access flag is set in the given access flags bit vector.Checks if
this
access flag is set in the given access flags bit vector.- Definition Classes
- AccessFlag
- Note
This method is just a more intuitively named alias for the unapply method.
- final val javaName: None.type
The Java (source code) name of the access flag if it exists.
The Java (source code) name of the access flag if it exists. E.g., Some("public"), Some("native"), etc.
- Definition Classes
- ACC_MODULE → AccessFlag
- final val mask: Int(32768)
The
Int
mask of this access flag as defined by the JVM specification.The
Int
mask of this access flag as defined by the JVM specification.- Definition Classes
- ACC_MODULE → AccessFlag → PrimitiveAccessFlagsMatcher
- def toString(): String
- Definition Classes
- ACC_MODULE → AnyRef → Any
- def unapply(accessFlags: Int): Boolean
Facilitates pattern matching against this
AccessFlag
.Facilitates pattern matching against this
AccessFlag
.Example
case ClassFile(ACC_PUBLIC(),...)
To create more complex matchers, use the
&
and!
methods.- returns
True
iff "this
" flag is set in the given access flags bit vector.
- Definition Classes
- AccessFlag → AccessFlagsMatcher
- def unary_!: AccessFlagsMatcher
Creates a new matcher that matches
accessFlags
that do not have (all of) the accessFlags specified by the given matcher.Creates a new matcher that matches
accessFlags
that do not have (all of) the accessFlags specified by the given matcher.- Definition Classes
- PrimitiveAccessFlagsMatcher → AccessFlagsMatcher
- def ||(right: AccessFlagsMatcher): AccessFlagsMatcher
- Definition Classes
- AccessFlagsMatcher