Class CustomJRJdtCompiler.CompilationUnit

  • All Implemented Interfaces:
    org.eclipse.jdt.internal.compiler.env.ICompilationUnit, org.eclipse.jdt.internal.compiler.env.IDependent
    Enclosing class:
    CustomJRJdtCompiler

    public static class CustomJRJdtCompiler.CompilationUnit
    extends java.lang.Object
    implements org.eclipse.jdt.internal.compiler.env.ICompilationUnit
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String className  
      protected java.lang.String srcCode  
      • Fields inherited from interface org.eclipse.jdt.internal.compiler.env.IDependent

        JAR_FILE_ENTRY_SEPARATOR
    • Constructor Summary

      Constructors 
      Constructor Description
      CompilationUnit​(java.lang.String srcCode, java.lang.String className)  
    • Field Detail

      • srcCode

        protected java.lang.String srcCode
      • className

        protected java.lang.String className
    • Constructor Detail

      • CompilationUnit

        public CompilationUnit​(java.lang.String srcCode,
                               java.lang.String className)
    • Method Detail

      • getFileName

        public char[] getFileName()
        Specified by:
        getFileName in interface org.eclipse.jdt.internal.compiler.env.IDependent
      • getContents

        public char[] getContents()
        Specified by:
        getContents in interface org.eclipse.jdt.internal.compiler.env.ICompilationUnit
      • getMainTypeName

        public char[] getMainTypeName()
        Specified by:
        getMainTypeName in interface org.eclipse.jdt.internal.compiler.env.ICompilationUnit
      • getPackageName

        public char[][] getPackageName()
        Specified by:
        getPackageName in interface org.eclipse.jdt.internal.compiler.env.ICompilationUnit
      • ignoreOptionalProblems

        public boolean ignoreOptionalProblems()
        Specified by:
        ignoreOptionalProblems in interface org.eclipse.jdt.internal.compiler.env.ICompilationUnit