ua.gradsoft.termware.debug
Class DebugStubJavaSourceObject

java.lang.Object
  extended by javax.tools.SimpleJavaFileObject
      extended by ua.gradsoft.termware.debug.DebugStubJavaSourceObject
All Implemented Interfaces:
FileObject, JavaFileObject
Direct Known Subclasses:
ConditionDebugStubJavaSourceObject, SetFactsDebugStubJavaSourceObject, SubstitutionDebugStubJavaSourceObject, UnificationDebugStubJavaSourceObject

public abstract class DebugStubJavaSourceObject
extends SimpleJavaFileObject

Base class for debug stubs.

Author:
rssh

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
 
Field Summary
protected  String contents_
          Java source, which we generate.
protected  String javaFname_
           
protected  String name_
          short name of class U
protected  String packageName_
          name of pavkage.
protected  String smap_
          smap file
 
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
 
Constructor Summary
DebugStubJavaSourceObject(String javaFname, String packageName, String shortClassName)
          Creates a new instance of DebugStubJavaSourceObject
 
Method Summary
protected abstract  void generateContent()
           
 CharSequence getCharContent(boolean ignoreEncodingErrors)
          return generated Java source code.
 CharSequence getSMap()
          get SMAP file, defined in JSR-45
 
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
 

Field Detail

contents_

protected String contents_
Java source, which we generate.


smap_

protected String smap_
smap file


name_

protected String name_
short name of class U


packageName_

protected String packageName_
name of pavkage. (usially - domain name of system)


javaFname_

protected String javaFname_
Constructor Detail

DebugStubJavaSourceObject

public DebugStubJavaSourceObject(String javaFname,
                                 String packageName,
                                 String shortClassName)
                          throws URISyntaxException
Creates a new instance of DebugStubJavaSourceObject

Throws:
URISyntaxException
Method Detail

getCharContent

public CharSequence getCharContent(boolean ignoreEncodingErrors)
                            throws IOException
return generated Java source code.

Specified by:
getCharContent in interface FileObject
Overrides:
getCharContent in class SimpleJavaFileObject
Throws:
IOException

generateContent

protected abstract void generateContent()

getSMap

public CharSequence getSMap()
get SMAP file, defined in JSR-45