Class CompiledSourceInfo

java.lang.Object
ch.grengine.code.CompiledSourceInfo

public class CompiledSourceInfo extends Object
Information about compiled source.

Contains the originating Source instance, the main class name and the last modified at compile time.

Since:
1.0
Author:
Alain Stalder, Made in Switzerland.
  • Constructor Details

    • CompiledSourceInfo

      public CompiledSourceInfo(Source source, String mainClassName, Set<String> classNames, long lastModifiedAtCompileTime)
      constructor.
      Parameters:
      source - the originating Source instance
      mainClassName - the main class name
      classNames - all class names
      lastModifiedAtCompileTime - the last modified at compile time
      Throws:
      NullPointerException - if source or main class name are null
      Since:
      1.0
  • Method Details

    • getSource

      public Source getSource()
      gets the originating Source instance.
      Returns:
      originating source
      Since:
      1.0
    • getMainClassName

      public String getMainClassName()
      gets the main class name.
      Returns:
      main class name
      Since:
      1.0
    • getClassNames

      public Set<String> getClassNames()
      gets all class names.
      Returns:
      all class names
      Since:
      1.0
    • getLastModifiedAtCompileTime

      public long getLastModifiedAtCompileTime()
      gets the last modified at compile time.
      Returns:
      last modified at compile time
      Since:
      1.0
    • toString

      public String toString()
      returns a string suitable for logging.
      Overrides:
      toString in class Object
      Returns:
      a string suitable for logging
      Since:
      1.0