Class CompilationUnitModel
java.lang.Object
software.coley.sourcesolver.model.AbstractModel
software.coley.sourcesolver.model.CompilationUnitModel
- All Implemented Interfaces:
Model
-
Constructor Summary
ConstructorsConstructorDescriptionCompilationUnitModel(Range range, String inputSource, PackageModel packageModel, List<ImportModel> imports, List<ClassModel> declaredClasses) -
Method Summary
Methods inherited from class software.coley.sourcesolver.model.AbstractModel
getChildren, getParent, getRange, resolveAtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.coley.sourcesolver.model.Model
getChildAtPosition, getParentOfType, getRecursiveChildrenOfType, getSource, isChildOf, isParentOf, resolve, visit
-
Constructor Details
-
CompilationUnitModel
public CompilationUnitModel(@Nonnull Range range, @Nonnull String inputSource, @Nonnull PackageModel packageModel, @Nonnull List<ImportModel> imports, @Nonnull List<ClassModel> declaredClasses)
-
-
Method Details
-
getInputSource
- Returns:
- Original source code used to construct this unit.
-
getPackage
-
getImports
-
getDeclaredClasses
-
equals
- Specified by:
equalsin classAbstractModel
-
hashCode
public int hashCode()- Specified by:
hashCodein classAbstractModel
-