Skip to content

Support annotations with members #458

@johnlinp

Description

@johnlinp

I want to write an annotation with members in PlantUML. Specifically, I want to describe this Java code in PlantUML:

public @interface Foo {
    String bar();
    String baz();
}

I tried to write it in PlantUML, but it causes syntax error:

@startuml
annotation Foo {
    String bar()
    String baz()
}
@enduml

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuKhCoyilIIp9pCzJSClFLwZcKW22u9AYpBnqXQJ48WrDL84ge40jbqDgNWfGCm00

Can PlantUML support annotations with members? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions