SabbanIndustrial / JarBindingArgumentNamesParse

Simple parser that parses .aidl files and generates metadata.xml managedName attributes for method arguments.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jar Binding Argument Names Parser

For Xamarin java bindings. Simple parser that parses .aidl files and generates metadata.xml managedName attributes for method arguments.

From this:

package com.comp.product.aidl.interop;

interface AidlInterface {
	boolean loadKey(byte type,in byte[] keyVal,byte tmkIndex);
}

To this:

<attr path="/api/package[@name='com.comp.product.aidl.interop']/interface[@name='AidlInterface']/method[@name='loadKey']/parameter[@name='p0']" name="managedName">type</attr>
<attr path="/api/package[@name='com.comp.product.aidl.interop']/interface[@name='AidlInterface']/method[@name='loadKey']/parameter[@name='p1']" name="managedName">keyVal</attr>
<attr path="/api/package[@name='com.comp.product.aidl.interop']/interface[@name='AidlInterface']/method[@name='loadKey']/parameter[@name='p2']" name="managedName">tmkIndex</attr>

About

Simple parser that parses .aidl files and generates metadata.xml managedName attributes for method arguments.


Languages

Language:C# 100.0%