Package name.jurgenei.gradle.antlr
Record Class SasMacroProcessor.MacroExpansionResult
java.lang.Object
java.lang.Record
name.jurgenei.gradle.antlr.SasMacroProcessor.MacroExpansionResult
- Record Components:
expandedSource- expanded SAS source.macros- resolved macro table.unresolvedMacros- unresolved macro references encountered in text.
- Enclosing class:
SasMacroProcessor
public static record SasMacroProcessor.MacroExpansionResult(String expandedSource, Map<String,String> macros, Set<String> unresolvedMacros)
extends Record
Expansion output model used by
SasMacroGradleTask.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpandedSourcerecord component.final inthashCode()Returns a hash code value for this object.macros()Returns the value of themacrosrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunresolvedMacrosrecord component.
-
Constructor Details
-
MacroExpansionResult
public MacroExpansionResult(String expandedSource, Map<String, String> macros, Set<String> unresolvedMacros) Creates an instance of aMacroExpansionResultrecord class.- Parameters:
expandedSource- the value for theexpandedSourcerecord componentmacros- the value for themacrosrecord componentunresolvedMacros- the value for theunresolvedMacrosrecord 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). -
expandedSource
Returns the value of theexpandedSourcerecord component.- Returns:
- the value of the
expandedSourcerecord component
-
macros
Returns the value of themacrosrecord component.- Returns:
- the value of the
macrosrecord component
-
unresolvedMacros
Returns the value of theunresolvedMacrosrecord component.- Returns:
- the value of the
unresolvedMacrosrecord component
-