java.lang.Object
java.lang.Record
org.aya.concrete.desugar.Desugarer
- All Implemented Interfaces:
Consumer<Stmt>,Function<Expr,,Expr> UnaryOperator<Expr>,EndoExpr,EndoPattern,StmtConsumer
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDesugarer(@NotNull ResolveInfo info) Creates an instance of aDesugarerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull ResolveInfoinfo()Returns the value of theinforecord component.@NotNull Expr@NotNull PatternDesugaring patternsfinal StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.concrete.visitor.EndoPattern
apply, postMethods inherited from interface org.aya.concrete.visitor.StmtConsumer
accept
-
Constructor Details
-
Desugarer
Creates an instance of aDesugarerrecord class.- Parameters:
info- the value for theinforecord component
-
-
Method Details
-
pre
-
pre
Desugaring patterns- Specified by:
prein interfaceEndoPattern- Parameters:
pattern- the pattern- Returns:
- desugared pattern
-
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). -
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-