Package org.sonar.java.resolve
Class Flags
- java.lang.Object
-
- org.sonar.java.resolve.Flags
-
public class Flags extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
ABSTRACT
static int
ACCESS_FLAGS
Masks.static int
ANNOTATION
Annotation type.static int
DEFAULT
Flag that marks either a default method or an interface containing default methods.static int
DEPRECATED
static int
ENUM
An enumeration type or an enumeration constant.static int
FINAL
static int
INTERFACE
Interface or annotation type.static int
NATIVE
static int
PRIVATE
static int
PROTECTED
static int
PUBLIC
static int
STATIC
static int
STRICTFP
static int
SYNCHRONIZED
static int
SYNTHETIC
static int
TRANSIENT
static int
VARARGS
Same value as for TRANSIENT as transient for method has no sense as well as vararg for a field.static int
VOLATILE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
filterAccessBytecodeFlags(int access)
static int
flagForModifier(Modifier modifier)
static boolean
isFlagged(int flags, int targetFlag)
static boolean
isNotFlagged(int flags, int targetFlag)
-
-
-
Field Detail
-
PUBLIC
public static final int PUBLIC
- See Also:
- Constant Field Values
-
PRIVATE
public static final int PRIVATE
- See Also:
- Constant Field Values
-
PROTECTED
public static final int PROTECTED
- See Also:
- Constant Field Values
-
STATIC
public static final int STATIC
- See Also:
- Constant Field Values
-
FINAL
public static final int FINAL
- See Also:
- Constant Field Values
-
SYNCHRONIZED
public static final int SYNCHRONIZED
- See Also:
- Constant Field Values
-
VOLATILE
public static final int VOLATILE
- See Also:
- Constant Field Values
-
TRANSIENT
public static final int TRANSIENT
- See Also:
- Constant Field Values
-
VARARGS
public static final int VARARGS
Same value as for TRANSIENT as transient for method has no sense as well as vararg for a field.- See Also:
- Constant Field Values
-
NATIVE
public static final int NATIVE
- See Also:
- Constant Field Values
-
INTERFACE
public static final int INTERFACE
Interface or annotation type.- See Also:
- Constant Field Values
-
ABSTRACT
public static final int ABSTRACT
- See Also:
- Constant Field Values
-
STRICTFP
public static final int STRICTFP
- See Also:
- Constant Field Values
-
SYNTHETIC
public static final int SYNTHETIC
- See Also:
- Constant Field Values
-
ANNOTATION
public static final int ANNOTATION
Annotation type.- See Also:
- Constant Field Values
-
ENUM
public static final int ENUM
An enumeration type or an enumeration constant.- See Also:
- Constant Field Values
-
DEFAULT
public static final int DEFAULT
Flag that marks either a default method or an interface containing default methods. Warning : This value is not compliant with openJDK (default is 1L<<43 and 1<<15 is MANDATE)- See Also:
- Constant Field Values
-
DEPRECATED
public static final int DEPRECATED
- See Also:
- Constant Field Values
-
ACCESS_FLAGS
public static final int ACCESS_FLAGS
Masks.- See Also:
- Constant Field Values
-
-
Method Detail
-
filterAccessBytecodeFlags
public static int filterAccessBytecodeFlags(int access)
-
isFlagged
public static boolean isFlagged(int flags, int targetFlag)
-
isNotFlagged
public static boolean isNotFlagged(int flags, int targetFlag)
-
flagForModifier
public static int flagForModifier(Modifier modifier)
-
-