-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added annotation and enum annotation element values
- Loading branch information
1 parent
e0b1f6e
commit e490052
Showing
11 changed files
with
158 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package me.darknet.assembler.compiler; | ||
|
||
import java.lang.annotation.ElementType; | ||
|
||
@interface Exported { | ||
String value(); | ||
|
||
@interface E { | ||
String value(); | ||
} | ||
} | ||
|
||
@interface BuildConfig { | ||
|
||
@Exported("BUILD_TYPE") | ||
ElementType[] value(); | ||
|
||
Exported value2(); | ||
|
||
String value3(); | ||
} | ||
|
||
@BuildConfig(value = {ElementType.FIELD}, value2 = @Exported("BUILD_TYPE"), value3 = "debug") | ||
public class Debug { | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ public enum AnnotationTarget { | |
FIELD, | ||
METHOD, | ||
CLASS, | ||
UNKNOWN | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/me/darknet/assembler/parser/groups/EnumGroup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package me.darknet.assembler.parser.groups; | ||
|
||
import lombok.Getter; | ||
import me.darknet.assembler.parser.Group; | ||
import me.darknet.assembler.parser.Token; | ||
|
||
public class EnumGroup extends Group { | ||
|
||
@Getter | ||
IdentifierGroup descriptor; | ||
@Getter | ||
IdentifierGroup enumValue; | ||
|
||
public EnumGroup(Token token, IdentifierGroup descriptor, IdentifierGroup value) { | ||
super(GroupType.ENUM, token, descriptor, value); | ||
this.descriptor = descriptor; | ||
this.enumValue = value; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters