Class ClassModel
java.lang.Object
software.coley.sourcesolver.model.AbstractModel
software.coley.sourcesolver.model.AbstractStatementModel
software.coley.sourcesolver.model.ClassModel
- All Implemented Interfaces:
AnnotatedModel,Model,NamedModel,NameHoldingModel
-
Constructor Summary
ConstructorsConstructorDescriptionClassModel(Range range, List<AnnotationExpressionModel> annotations, ModifiersModel modifiers, String name, List<TypeParameterModel> typeParameters, NamedModel extendsModel, ImplementsModel implementsModel, PermitsModel permitsModel, List<VariableModel> fields, List<MethodModel> methods, List<ClassModel> innerClasses) -
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, visit
-
Constructor Details
-
ClassModel
public ClassModel(@Nonnull Range range, @Nonnull List<AnnotationExpressionModel> annotations, @Nonnull ModifiersModel modifiers, @Nonnull String name, @Nonnull List<TypeParameterModel> typeParameters, @Nonnull NamedModel extendsModel, @Nonnull ImplementsModel implementsModel, @Nonnull PermitsModel permitsModel, @Nonnull List<VariableModel> fields, @Nonnull List<MethodModel> methods, @Nonnull List<ClassModel> innerClasses)
-
-
Method Details
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedModel- Returns:
- Annotations on this model.
-
getModifiers
-
getName
- Specified by:
getNamein interfaceNamedModel- Specified by:
getNamein interfaceNameHoldingModel- Returns:
- Identifier name.
-
getTypeParameters
-
getExtends
-
getImplements
-
getPermits
-
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.
-
getFields
-
getMethods
-
getInnerClasses
-
equals
- Specified by:
equalsin classAbstractModel
-
hashCode
public int hashCode()- Specified by:
hashCodein classAbstractModel
-
toString
-