org.apache.pig.impl.util
Class JavaCompilerHelper.JavaSourceFromString

java.lang.Object
  extended by javax.tools.SimpleJavaFileObject
      extended by org.apache.pig.impl.util.JavaCompilerHelper.JavaSourceFromString
All Implemented Interfaces:
javax.tools.FileObject, javax.tools.JavaFileObject
Enclosing class:
JavaCompilerHelper

public static class JavaCompilerHelper.JavaSourceFromString
extends javax.tools.SimpleJavaFileObject

This class allows code to be generated directly from a String, instead of having to be on disk.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
javax.tools.JavaFileObject.Kind
 
Field Summary
 
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
 
Constructor Summary
JavaCompilerHelper.JavaSourceFromString(String name, String code)
           
 
Method Summary
 CharSequence getCharContent(boolean ignoreEncodingErrors)
           
 
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaCompilerHelper.JavaSourceFromString

public JavaCompilerHelper.JavaSourceFromString(String name,
                                               String code)
Method Detail

getCharContent

public CharSequence getCharContent(boolean ignoreEncodingErrors)
Specified by:
getCharContent in interface javax.tools.FileObject
Overrides:
getCharContent in class javax.tools.SimpleJavaFileObject


Copyright © 2007-2012 The Apache Software Foundation