Java - JNI accessing inner classes

Joined
Oct 28, 2010
Messages
4
Reaction score
0
I want a native method access and value labelBase of class page in class parser, how could I accomplish this?

Thank you very much. Class structure is as below:

package com.example.hellojni;

public class parser {
public native page parse_net_data(byte[] data, int len);

class page {
int pageKind;
String Title;
String exTile;
String url;
labelBase[] label;
public native void nn();
}

abstract class labelBase {
int labelKind;
String url;

void setValue(int labelKind,String url){
this.labelKind = labelKind;
this.url = url;
}
}

class text extends labelBase {
byte[] nda ;

public String info;
int nn = nda.length;
public int align;
}

class hyperlink extends labelBase {
public String info;
public String url;
public int align;
}
}
 
Joined
Oct 28, 2010
Messages
4
Reaction score
0
this is not only to access inner classes, but also to access the array member of object type in inner classes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top