Class VariableModel
java.lang.Object
software.coley.sourcesolver.model.AbstractModel
software.coley.sourcesolver.model.AbstractStatementModel
software.coley.sourcesolver.model.VariableModel
- All Implemented Interfaces:
AnnotatedModel,Model,NamedModel,NameHoldingModel
public class VariableModel
extends AbstractStatementModel
implements AnnotatedModel, NameHoldingModel
-
Constructor Summary
ConstructorsConstructorDescriptionVariableModel(Range range, List<AnnotationExpressionModel> annotations, ModifiersModel modifiers, TypeModel type, String name, Model value) -
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
-
VariableModel
public VariableModel(@Nonnull Range range, @Nonnull List<AnnotationExpressionModel> annotations, @Nonnull ModifiersModel modifiers, @Nonnull TypeModel type, @Nonnull String name, @Nullable Model value)
-
-
Method Details
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedModel- Returns:
- Annotations on this model.
-
getModifiers
-
getType
-
getName
- Specified by:
getNamein interfaceNamedModel- Specified by:
getNamein interfaceNameHoldingModel- Returns:
- Identifier name.
-
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.
-
getValue
-
equals
- Specified by:
equalsin classAbstractModel
-
hashCode
public int hashCode()- Specified by:
hashCodein classAbstractModel
-
toString
-