* initial setup for data class and metadata parsing * bug fix & comments * better version using plugin system * added tests * ignore getters test fix * logs & imports * reverted accidental changes * moved util classes to plugin, spotless apply * move test and some other minor fixes --------- Co-authored-by: Skylot <skylot@gmail.com>
This commit is contained in:
committed by
GitHub
parent
3474f0da04
commit
ccdbb1d62c
@@ -22,6 +22,7 @@ public class AccessFlags {
|
||||
public static final int MODULE = 0x8000;
|
||||
public static final int CONSTRUCTOR = 0x10000;
|
||||
public static final int DECLARED_SYNCHRONIZED = 0x20000;
|
||||
public static final int DATA = 0x40000;
|
||||
|
||||
public static boolean hasFlag(int flags, int flagValue) {
|
||||
return (flags & flagValue) != 0;
|
||||
@@ -85,6 +86,9 @@ public class AccessFlags {
|
||||
if (hasFlag(flags, ENUM)) {
|
||||
code.append("enum ");
|
||||
}
|
||||
if (hasFlag(flags, DATA)) {
|
||||
code.append("data ");
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (hasFlag(flags, SYNTHETIC)) {
|
||||
|
||||
Reference in New Issue
Block a user