Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [eol] problem with creating a native java String
[eol] problem with creating a native java String [message #590459] Tue, 06 July 2010 13:44
m kranz is currently offline m kranzFriend
Messages: 69
Registered: January 2010
Member
hi all

i was trying to create a java.lang.String as native type in eol (as shown in the book, listing 3.8 ), but it does not seem to work. i tried things like the following, but it always tells me that the methods (replaceAll, indexOf etc.) are not found.

var code = new Native("java.lang.String");
code.replaceAll("", node.viewmap.classBody.toString());
var index = code.indexOf("createContents()");

has anyone an idea what i'm doing wrong?

thanks

marco
Previous Topic:Merging fragments
Next Topic:[eol] problem with creating a native java String
Goto Forum:
  


Current Time: Thu Nov 27 00:36:51 GMT 2014

Powered by FUDForum. Page generated in 0.02225 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software