Class IntEnumShape

    • Method Detail

      • getEnumValues

        public java.util.Map<java.lang.String,​java.lang.Integer> getEnumValues()
        Gets a map of enum member names to their corresponding values.
        Returns:
        A map of member names to enum values.
      • getAllMembers

        public java.util.Map<java.lang.String,​MemberShape> getAllMembers()
        Gets the members of the shape, including mixin members.
        Overrides:
        getAllMembers in class Shape
        Returns:
        Returns the immutable member map.
      • accept

        public <R> R accept​(ShapeVisitor<R> cases)
        Description copied from class: Shape
        Dispatches the shape to the appropriate ShapeVisitor method.
        Overrides:
        accept in class IntegerShape
        Type Parameters:
        R - Return type of the accept.
        Parameters:
        cases - ShapeVisitor to use.
        Returns:
        Returns the result.
      • getType

        public ShapeType getType()
        Description copied from class: Shape
        Gets the type of the shape.
        Overrides:
        getType in class IntegerShape
        Returns:
        Returns the type;