CharSequenceJavaFileObject.java
Go to the documentation of this file.
00001 package com.rosalfred.core.ia.rivescript.lang.java;
00002 
00003 import java.net.URI;
00004 
00005 import javax.tools.SimpleJavaFileObject;
00006 
00007 public class CharSequenceJavaFileObject extends SimpleJavaFileObject {
00009         private String qualifiedName;
00010 
00014     private CharSequence content;
00015 
00026     public CharSequenceJavaFileObject(String className,
00027             CharSequence content) {
00028         super(URI.create("string:///" + className.replace('.', '/')
00029                 + Kind.SOURCE.extension), Kind.SOURCE);
00030         this.content = content;
00031     }
00032 
00037     @Override
00038     public CharSequence getCharContent(
00039             boolean ignoreEncodingErrors) {
00040         return content;
00041     }
00042 
00047     public void setQualifiedName(String name) {
00048         this.qualifiedName = name;
00049     }
00050 
00054     public String getQualifiedName() {
00055         return this.qualifiedName;
00056     }
00057 }


alfred_bot
Author(s): Mickael Gaillard , Erwan Le Huitouze
autogenerated on Tue Jun 14 2016 01:34:50