public Result createResult(final ClassOutputter outputter, Feedback feedback) { return new Result(config, outputter, feedback); }
public Result createResult(final ClassOutputter outputter, Feedback feedback) { return new Result(config, outputter, feedback); }
static String preprocess(File source) throws IOException, LexerException { JNAeratorConfig config = new JNAeratorConfig(); JNAeratorConfigUtils.autoConfigure(config); config.preprocessorConfig.implicitIncludes.add("C:\\program files\\Microsoft SDKs\\Windows\\v7.0A\\Include"); config.preprocessorConfig.implicitIncludes.add("C:\\program files\\Microsoft Visual Studio 10.0\\VC\\include"); //config.preprocessorConfig.includeStrings.add(source); config.addSourceFile(source, null, false, true, true); Result result = new Result(config, null, null); String pre = PreprocessorUtils.preprocessSources(config, Collections.EMPTY_LIST, false, result.typeConverter, null); return pre; }
public static void main(String[] args) { try { JNAeratorConfig config = new JNAeratorConfig(); config.verbose = true; Result result = new Result(config, null, null); SourceFiles sourceFiles = new SourceFiles(); File file = new File("/System/Library/Frameworks/Foundation.framework/Resources/BridgeSupport/FoundationFull.bridgesupport"); new BridgeSupportParser(result, sourceFiles).parseBridgeSupportFile(file); } catch (Exception ex) { ex.printStackTrace(); } }
public static void main(String[] args) { try { JNAeratorConfig config = new JNAeratorConfig(); config.verbose = true; Result result = new Result(config, null, null); SourceFiles sourceFiles = new SourceFiles(); File file = new File("/System/Library/Frameworks/Foundation.framework/Resources/BridgeSupport/FoundationFull.bridgesupport"); new BridgeSupportParser(result, sourceFiles).parseBridgeSupportFile(file); } catch (Exception ex) { ex.printStackTrace(); } }
static String preprocess(File source) throws IOException, LexerException { JNAeratorConfig config = new JNAeratorConfig(); JNAeratorConfigUtils.autoConfigure(config); config.preprocessorConfig.implicitIncludes.add("C:\\program files\\Microsoft SDKs\\Windows\\v7.0A\\Include"); config.preprocessorConfig.implicitIncludes.add("C:\\program files\\Microsoft Visual Studio 10.0\\VC\\include"); //config.preprocessorConfig.includeStrings.add(source); config.addSourceFile(source, null, false, true, true); Result result = new Result(config, null, null); String pre = PreprocessorUtils.preprocessSources(config, Collections.EMPTY_LIST, false, result.typeConverter, null); return pre; }
public static ObjCppParser newParser(String s) throws IOException { Result result = new Result(new JNAeratorConfig(), null, null); ObjCppParser parser = new ObjCppParser(new CommonTokenStream(new ObjCppLexer( new ANTLRReaderStream(new StringReader(s)))) // , new DummyDebugEventListener() ); parser.objCParserHelper = result.typeConverter; return parser; }
public static ObjCppParser newParser(String s) throws IOException { Result result = new Result(new JNAeratorConfig(), null, null); ObjCppParser parser = new ObjCppParser(new CommonTokenStream(new ObjCppLexer( new ANTLRReaderStream(new StringReader(s)))) // , new DummyDebugEventListener() ); parser.objCParserHelper = result.typeConverter; return parser; }
static List<Declaration> parseDeclarations(String source) throws IOException, LexerException, InterruptedException { JNAeratorConfig config = new JNAeratorConfig(); JNAeratorConfigUtils.autoConfigure(config); //config.noCPlusPlus = true; config.preprocessorConfig.includeStrings.add(source); Result result = new Result(config, null, null); SourceFiles parse = new JNAeratorParser().parse(config, result.typeConverter, null); List<Declaration> ret = new ArrayList<Declaration>(); flatten(parse, ret); return ret; }
static List<Declaration> parseDeclarations(String source) throws IOException, LexerException, InterruptedException { JNAeratorConfig config = new JNAeratorConfig(); JNAeratorConfigUtils.autoConfigure(config); //config.noCPlusPlus = true; config.preprocessorConfig.includeStrings.add(source); Result result = new Result(config, null, null); SourceFiles parse = new JNAeratorParser().parse(config, result.typeConverter, null); List<Declaration> ret = new ArrayList<Declaration>(); flatten(parse, ret); return ret; }
public static ObjCppParser newParser(String s) throws IOException { Result result = new Result(new JNAeratorConfig(), null, null); ObjCppParser parser = new ObjCppParser(new CommonTokenStream(new ObjCppLexer( new ANTLRReaderStream(new StringReader(s)))) // , new DummyDebugEventListener() ); parser.objCParserHelper = result.typeConverter; return parser; } }