Class PackageModel
java.lang.Object
software.coley.sourcesolver.model.AbstractModel
software.coley.sourcesolver.model.PackageModel
- All Implemented Interfaces:
AnnotatedModel,Model,NamedModel,NameHoldingModel
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPackageModel(Range range, NameExpressionModel name, List<AnnotationExpressionModel> annotations) -
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, wait, wait, waitMethods inherited from interface software.coley.sourcesolver.model.Model
getChildAtPosition, getChildren, getParent, getParentOfType, getRange, getRecursiveChildrenOfType, getSource, isChildOf, isParentOf, resolve, resolveAt, visitMethods inherited from interface software.coley.sourcesolver.model.NameHoldingModel
getName
-
Field Details
-
DEFAULT_PACKAGE
-
-
Constructor Details
-
PackageModel
public PackageModel(@Nonnull Range range, @Nonnull NameExpressionModel name, @Nonnull List<AnnotationExpressionModel> annotations)
-
-
Method Details
-
isDefaultPackage
public boolean isDefaultPackage() -
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedModel- Returns:
- Annotations on this model.
-
getNameModel
- Specified by:
getNameModelin interfaceNameHoldingModel- Returns:
- Model of name.
Can be
nullin cases where thejavacAPI doesn't track names. Thename stringshould still be present though.
-
equals
- Specified by:
equalsin classAbstractModel
-
hashCode
public int hashCode()- Specified by:
hashCodein classAbstractModel
-
toString
-