org.vishia.java2C
Interface JavaSources.ClassDataOrJavaSrcFile

All Known Implementing Classes:
ClassData, JavaSrcTreeFile, JavaSrcTreePkg
Enclosing class:
JavaSources

public static interface JavaSources.ClassDataOrJavaSrcFile


Method Summary
 ClassData getClassData()
          Returns the ClassData of the instance, or null.
 JavaSrcTreePkg getJavaPkg()
          Returns the instance if it is a JavaSrcTreePkg, else null.
 JavaSrcTreeFile getJavaSrc()
          Returns the instance if it is a JavaSrcTreeFile, else null.
 LocalIdents getLocalIdents(java.lang.String sName)
          Returns the identifier of classes or packages, which are available in the implementing package, file or class.
 ConfigSrcPathPkg_ifc.Set getReplaceCinfo()
          Returns the informations to find out where the C-file is found and which pre/suffix are valid.
 java.lang.String getTypeName()
          Returns the name of the class or package.
 boolean isToTranslate()
          Returns true if the translation from Java is set.
 void setClassData(ClassData data)
           
 

Method Detail

getClassData

ClassData getClassData()
Returns the ClassData of the instance, or null. If the instance is of type ClassData, it returns the instance itself. If the instance is of type JavaSrcTreeFile, it returns the associated ClassData, if the file is translated yet or the stc-file is read already. If the file isn't translated, it returns null.


getJavaSrc

JavaSrcTreeFile getJavaSrc()
Returns the instance if it is a JavaSrcTreeFile, else null.


getJavaPkg

JavaSrcTreePkg getJavaPkg()
Returns the instance if it is a JavaSrcTreePkg, else null.


getTypeName

java.lang.String getTypeName()
Returns the name of the class or package. It is the public class in a file.


getLocalIdents

LocalIdents getLocalIdents(java.lang.String sName)
Returns the identifier of classes or packages, which are available in the implementing package, file or class.

Parameters:
sName - Name of the element. Especially if it is a JavaSrcTreeFile, it may be the name of the public class or another class in the file.
Returns:
Especially list of all types in the element. If it is a package, the types may be the files in the package or sub-packages.

getReplaceCinfo

ConfigSrcPathPkg_ifc.Set getReplaceCinfo()
Returns the informations to find out where the C-file is found and which pre/suffix are valid.

Returns:
null if there are not such informations. That is especially for super-paths.

isToTranslate

boolean isToTranslate()
Returns true if the translation from Java is set. It doesn't mean that it should be translated any time, the necessity of translation depends on the time stamps of Java- and C-files. But the Java-File have to be existing.

Returns:
false if always the stc-File is to be read, or it is a ClassData.

setClassData

void setClassData(ClassData data)