Class ImmutableTrees.BoundAccessExpression

    • Field Detail

      • path

        private final com.google.common.collect.ImmutableList<Trees.Identifier> path
      • accessor

        private final com.google.common.collect.ImmutableList<java.lang.Object> accessor
    • Constructor Detail

      • BoundAccessExpression

        private BoundAccessExpression​(com.google.common.collect.ImmutableList<Trees.Identifier> path,
                                      com.google.common.collect.ImmutableList<java.lang.Object> accessor)
    • Method Detail

      • path

        public com.google.common.collect.ImmutableList<Trees.Identifier> path()
        Returns:
        The value of the path attribute
      • accessor

        public com.google.common.collect.ImmutableList<java.lang.Object> accessor()
        Specified by:
        accessor in class Trees.BoundAccessExpression
        Returns:
        The value of the accessor attribute
      • withPath

        public final ImmutableTrees.BoundAccessExpression withPath​(java.lang.Iterable<? extends Trees.Identifier> elements)
        Copy the current immutable object with elements that replace the content of path. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of path elements to set
        Returns:
        A modified copy of this object
      • withAccessor

        public final ImmutableTrees.BoundAccessExpression withAccessor​(java.lang.Object... elements)
        Copy the current immutable object with elements that replace the content of accessor.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withAccessor

        public final ImmutableTrees.BoundAccessExpression withAccessor​(java.lang.Iterable<? extends java.lang.Object> elements)
        Copy the current immutable object with elements that replace the content of accessor. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of accessor elements to set
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object another)
        This instance is equal to all instances of BoundAccessExpression that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: path, accessor.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value