Package ch.grengine.code
Class CompiledSourceInfo
java.lang.Object
ch.grengine.code.CompiledSourceInfo
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 Summary
ConstructorsConstructorDescriptionCompiledSourceInfo(Source source, String mainClassName, Set<String> classNames, long lastModifiedAtCompileTime) constructor. -
Method Summary
-
Constructor Details
-
CompiledSourceInfo
public CompiledSourceInfo(Source source, String mainClassName, Set<String> classNames, long lastModifiedAtCompileTime) constructor.- Parameters:
source- the originatingSourceinstancemainClassName- the main class nameclassNames- all class nameslastModifiedAtCompileTime- the last modified at compile time- Throws:
NullPointerException- if source or main class name are null- Since:
- 1.0
-
-
Method Details
-
getSource
gets the originatingSourceinstance.- Returns:
- originating source
- Since:
- 1.0
-
getMainClassName
gets the main class name.- Returns:
- main class name
- Since:
- 1.0
-
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
returns a string suitable for logging.
-