Skip to content

jextract-swift support Swift properties as Java get/set method pairs #24

@DougGregor

Description

@DougGregor

jextract-swift currently ignores public Swift properties when creating Java wrappers for the Swift type. We could instead produce wrappers for the getter/setter. For example, given something like:

public class MySwiftClass {
  public var counter: Int32
}

the Java class could have:

public int getCounter();
public void setCounter(int newValue);

that call the getter/setter, respectively.

Metadata

Metadata

Assignees

Labels

feature:jextractIssues related to jextract-swift

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions