Interface NameHoldingModel

All Superinterfaces:
Model, NamedModel
All Known Implementing Classes:
AnnotationArgumentModel, AnnotationExpressionModel, ClassModel, MethodModel, MethodReferenceExpressionModel, PackageModel, VariableModel

public interface NameHoldingModel extends NamedModel
A model that has an identifier as an expression.
Author:
Matt Coley
  • Method Details

    • getName

      @Nonnull default String getName()
      Specified by:
      getName in interface NamedModel
      Returns:
      Identifier name.
    • getNameModel

      @Nullable NameExpressionModel getNameModel()
      Returns:
      Model of name. Can be null in cases where the javac API doesn't track names. The name string should still be present though.