Class MethodModel
java.lang.Object
software.coley.sourcesolver.model.AbstractModel
software.coley.sourcesolver.model.MethodModel
- All Implemented Interfaces:
AnnotatedModel,Model,NamedModel,NameHoldingModel
-
Constructor Summary
ConstructorsConstructorDescriptionMethodModel(Range range, String name, ModifiersModel modifiers, List<TypeParameterModel> typeParameters, TypeModel returnType, List<VariableModel> parameters, Model defaultValue, List<AbstractExpressionModel> thrownTypes, List<AnnotationExpressionModel> annotations, MethodBodyModel methodBody) -
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
-
MethodModel
public MethodModel(@Nonnull Range range, @Nonnull String name, @Nonnull ModifiersModel modifiers, @Nonnull List<TypeParameterModel> typeParameters, @Nonnull TypeModel returnType, @Nonnull List<VariableModel> parameters, @Nullable Model defaultValue, @Nonnull List<AbstractExpressionModel> thrownTypes, @Nonnull List<AnnotationExpressionModel> annotations, @Nullable MethodBodyModel methodBody)
-
-
Method Details
-
isStaticInitializer
public boolean isStaticInitializer() -
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.
-
getModifiers
-
getTypeParameters
-
getReturnType
-
getParameters
-
getDefaultValue
-
getThrownTypes
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedModel- Returns:
- Annotations on this model.
-
getMethodBody
-
equals
- Specified by:
equalsin classAbstractModel
-
hashCode
public int hashCode()- Specified by:
hashCodein classAbstractModel
-
toString
-