Interface ParameterAttribute<X,​Y>

Type Parameters:
X - The type of the declaring entity view
Y - The type of attribute
All Superinterfaces:
Attribute<X,​Y>

public interface ParameterAttribute<X,​Y>
extends Attribute<X,​Y>
Represents an attribute of a view type specified by a constructor parameter.
Since:
1.0.0
Author:
Christian Beikov
  • Method Details

    • getIndex

      int getIndex()
      Returns the index of the parameter within the constructor.
      Returns:
      The index of the parameter within the constructor
    • getDeclaringConstructor

      MappingConstructor<X> getDeclaringConstructor()
      Returns the declaring constructor.
      Returns:
      The declaring constructor
    • isSelfParameter

      boolean isSelfParameter()
      Returns whether the parameter is a "self" parameter i.e. annotated with Self.
      Returns:
      Whether the parameter is a self parameter
      Since:
      1.5.0