Record Class PythonAstParser.TransformResult
java.lang.Object
java.lang.Record
io.micronaut.python.processing.PythonAstParser.TransformResult
- Record Components:
originalSource- The original sourcecode- The transformed coderuntimeCode- The runtime codedecorators- The decoratorsjavaClassImports- The Java class importsexportedTypes- The types that have Micronaut decoratorsallClassNames- All class names defined in the sourcevalidationErrors- Validation errors found while transforming the source
- Enclosing class:
PythonAstParser
public static record PythonAstParser.TransformResult(org.graalvm.polyglot.Source originalSource, String code, String runtimeCode, Map<String,String> decorators, Map<String, List<Map<String,String>>> javaClassImports, List<String> exportedTypes, List<String> allClassNames, List<String> validationErrors)
extends Record
The result of a transformation.
-
Constructor Summary
ConstructorsConstructorDescriptionTransformResult(org.graalvm.polyglot.Source originalSource, String code, String runtimeCode, Map<String, String> decorators, Map<String, List<Map<String, String>>> javaClassImports, List<String> exportedTypes, List<String> allClassNames, List<String> validationErrors) Creates an instance of aTransformResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallClassNamesrecord component.code()Returns the value of thecoderecord component.Returns the value of thedecoratorsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexportedTypesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thejavaClassImportsrecord component.org.graalvm.polyglot.SourceReturns the value of theoriginalSourcerecord component.Returns the value of theruntimeCoderecord component.org.graalvm.polyglot.Sourcefinal StringtoString()Returns a string representation of this record class.org.graalvm.polyglot.SourceReturns the value of thevalidationErrorsrecord component.
-
Constructor Details
-
TransformResult
public TransformResult(org.graalvm.polyglot.Source originalSource, String code, String runtimeCode, Map<String, String> decorators, Map<String, List<Map<String, String>>> javaClassImports, List<String> exportedTypes, List<String> allClassNames, List<String> validationErrors) Creates an instance of aTransformResultrecord class.- Parameters:
originalSource- the value for theoriginalSourcerecord componentcode- the value for thecoderecord componentruntimeCode- the value for theruntimeCoderecord componentdecorators- the value for thedecoratorsrecord componentjavaClassImports- the value for thejavaClassImportsrecord componentexportedTypes- the value for theexportedTypesrecord componentallClassNames- the value for theallClassNamesrecord componentvalidationErrors- the value for thevalidationErrorsrecord component
-
-
Method Details
-
transformedSource
public org.graalvm.polyglot.Source transformedSource() -
runtimeSource
public org.graalvm.polyglot.Source runtimeSource() -
toString
-
hashCode
-
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). -
originalSource
public org.graalvm.polyglot.Source originalSource()Returns the value of theoriginalSourcerecord component.- Returns:
- the value of the
originalSourcerecord component
-
code
-
runtimeCode
Returns the value of theruntimeCoderecord component.- Returns:
- the value of the
runtimeCoderecord component
-
decorators
Returns the value of thedecoratorsrecord component.- Returns:
- the value of the
decoratorsrecord component
-
javaClassImports
Returns the value of thejavaClassImportsrecord component.- Returns:
- the value of the
javaClassImportsrecord component
-
exportedTypes
Returns the value of theexportedTypesrecord component.- Returns:
- the value of the
exportedTypesrecord component
-
allClassNames
Returns the value of theallClassNamesrecord component.- Returns:
- the value of the
allClassNamesrecord component
-
validationErrors
Returns the value of thevalidationErrorsrecord component.- Returns:
- the value of the
validationErrorsrecord component
-