Package com.bc.ceres.compiler
Class Code
java.lang.Object
javax.tools.SimpleJavaFileObject
com.bc.ceres.compiler.Code
- All Implemented Interfaces:
FileObject
,JavaFileObject
- Direct Known Subclasses:
ExpressionCode
A file object used to represent Java source coming from a string.
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
-
Field Summary
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
-
Constructor Details
-
Code
Constructs a new JavaCode file object.- Parameters:
className
- the fully qualified class namecode
- the source code for the compilation unit represented by this file object
-
-
Method Details
-
getClassName
-
getCharContent
- Specified by:
getCharContent
in interfaceFileObject
- Overrides:
getCharContent
in classSimpleJavaFileObject
-