Package org.checkerframework.javacutil
Record Class TreePathUtil.EnclosingNonParen
java.lang.Object
java.lang.Record
org.checkerframework.javacutil.TreePathUtil.EnclosingNonParen
- Record Components:
enclosing- a tree that is not aParenthesizedTreeenclosingChild- the child ofenclosingthat is the queried tree or is a parenthesized version of it
- Enclosing class:
TreePathUtil
public static record TreePathUtil.EnclosingNonParen(Tree enclosing, Tree enclosingChild)
extends Record
The result of
TreePathUtil.enclosingNonParen(com.sun.source.util.TreePath): a non-parenthesis tree and the child of it that led
to the queried tree.-
Constructor Summary
ConstructorsConstructorDescriptionEnclosingNonParen(Tree enclosing, Tree enclosingChild) Creates an instance of aEnclosingNonParenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenclosingrecord component.Returns the value of theenclosingChildrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnclosingNonParen
Creates an instance of aEnclosingNonParenrecord class.- Parameters:
enclosing- the value for theenclosingrecord componentenclosingChild- the value for theenclosingChildrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
enclosing
Returns the value of theenclosingrecord component.- Returns:
- the value of the
enclosingrecord component
-
enclosingChild
Returns the value of theenclosingChildrecord component.- Returns:
- the value of the
enclosingChildrecord component
-