Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.tools.dbws
Class InMemoryCompiler

java.lang.Object
  extended by org.eclipse.persistence.tools.dbws.InMemoryCompiler


public class InMemoryCompiler
extends java.lang.Object

PRIVATE: InMemoryCompiler wraps a JavaCompiler. Only supports compiling a single file in-memory.

Author:
mnorman

Nested Class Summary
(package private)  class InMemoryCompiler.ByteArrayFileManager
           
(package private)  class InMemoryCompiler.ByteArrayJavaFileObject
           
(package private)  class InMemoryCompiler.JavaSourceFromString
           

 

Field Summary
protected  javax.tools.JavaCompiler compiler
           
protected  javax.tools.DiagnosticCollector<javax.tools.JavaFileObject> diagnosticsCollector
           
protected  javax.tools.JavaFileManager fileManager
           
(package private) static java.lang.Iterable<java.lang.String> OPTIONS
           
protected  java.lang.String targetFileName
           

 

Constructor Summary
InMemoryCompiler(java.lang.String targetFileName)
           

 

Method Summary
 byte[] compile(java.lang.CharSequence source)
           
 javax.tools.JavaCompiler getCompiler()
           
 javax.tools.DiagnosticCollector<javax.tools.JavaFileObject> getDiagnosticsCollector()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

OPTIONS

static final java.lang.Iterable<java.lang.String> OPTIONS

targetFileName

protected java.lang.String targetFileName

compiler

protected javax.tools.JavaCompiler compiler

diagnosticsCollector

protected javax.tools.DiagnosticCollector<javax.tools.JavaFileObject> diagnosticsCollector

fileManager

protected javax.tools.JavaFileManager fileManager

Constructor Detail

InMemoryCompiler

public InMemoryCompiler(java.lang.String targetFileName)

Method Detail

getCompiler

public javax.tools.JavaCompiler getCompiler()

getDiagnosticsCollector

public javax.tools.DiagnosticCollector<javax.tools.JavaFileObject> getDiagnosticsCollector()

compile

public byte[] compile(java.lang.CharSequence source)

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.