Skip to content

Customize declaration types #5

Description

@sormuras

Provide API to plug-in custom declaration like:

class CustomMethodDecl extends MethodDeclaration {
 // reflect
 // scan mirrors
 // store custom properties
 // emit custom listing
}

Usage outline:

register(MethodDeclaration.class, CustomMethodDecl.class);
...
InterfaceDeclaration interface = unit.declareInterface("Test");
CustomMethodDecl custom = interface.declareMethod(void.class, "run");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions