public final class LanguageFeatures
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DYNAMIC_CONSTANTS
Dynamic constants
|
static int |
METHODS_IN_INTERFACES
Language version supports methods in interfaces
|
static int |
NESTING
Native nesting
|
static int |
PRIVATE_METHODS_IN_INTERFACES
Language version supports user-defined private methods in interfaces
|
static int |
PRIVATE_SYNTHETIC_METHODS_IN_INTERFACES
Language version supports synthetic private methods in interfaces
|
static int |
RECORDS
Record types
|
static int |
SEALED_CLASSES
Sealed classes (permitted subclasses)
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(int features)
Format the supplied feature mask as a plain-text list for use in error
messages etc.
|
static int |
scan(org.objectweb.asm.tree.ClassNode classNode)
Scan the supplied class node to determine required language features via
heuristic.
|
public static final int METHODS_IN_INTERFACES
public static final int PRIVATE_SYNTHETIC_METHODS_IN_INTERFACES
public static final int PRIVATE_METHODS_IN_INTERFACES
public static final int NESTING
public static final int DYNAMIC_CONSTANTS
public static final int RECORDS
public static final int SEALED_CLASSES
public static int scan(org.objectweb.asm.tree.ClassNode classNode)
classNode - ClassNode to scan (must include method bodies for
reliable detection)public static final java.lang.String format(int features)
features - Language features to format