0.4.8 • Published 5 years ago

java-method-parser v0.4.8

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

java-method-parser Build Status Coverage Status BCH compliance

Get an objective-c header file and translate it to equivalent javascript calls

Install

$ npm install java-method-parser

Usage

const fs = require("fs");
const javaMethodParser = require("java-method-parser");
const content = fs.readFileSync("/path/to/java/Ponies.java");

const output = objectiveCParser(content);

fs.writeFileSync("/path/to/project/ponies.json", output);

Example

package com.foo.bar.baz;

public class BasicName {
    private BasicName() {}

    /**
     *   asserting a matcher
     */
    public static ViewInteraction assertMatcher(ViewInteraction i, Matcher<View> m) {}

    // This is for asserting invisibility
    public static ViewInteraction assertNotVisible(ViewInteraction i) {}
}
{
	"name": "BasicName",
	"pcakage": "com.foo.bar",
	"methods": [
		{
			"args": [
				{
					"type": "ViewInteraction",
					"name": "i"
				},
				{
					"type": "Matcher<View>",
					"name": "m"
				}
			],
			"comment": "asserting a matcher",
			"name": "assertMatcher",
			"returnType": "ViewInteraction"
		},
		{
			"args": [
				{
					"type": "ViewInteraction",
					"name": "i"
				}
			],
			"comment": "This is for asserting invisibility",
			"name": "assertNotVisible",
			"returnType": "ViewInteraction"
		}
	]
}

License

MIT © Daniel Schmidt

0.4.8

5 years ago

0.4.7

6 years ago

1.0.0-1

6 years ago

1.0.0-0

6 years ago

0.4.6

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago