Record Class PythonContextRuntime.PythonClassReference
java.lang.Object
java.lang.Record
io.micronaut.context.python.PythonContextRuntime.PythonClassReference
- Record Components:
packageName- The Python package, ornullfor top-level classesrootName- The top-level Python import/member namenestedMemberNames- The nested member names below the root classdisplayName- The class display name used in diagnosticscacheKey- The stable class cache key used by pooled contexts
- Enclosing class:
PythonContextRuntime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncacheKey()Returns the value of thecacheKeyrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.String[]Returns the value of thenestedMemberNamesrecord component.@Nullable StringReturns the value of thepackageNamerecord component.rootName()Returns the value of therootNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PythonClassReference
public PythonClassReference(@Nullable String packageName, String rootName, String[] nestedMemberNames, String displayName, String cacheKey) Create a Python class reference.- Parameters:
packageName- The Python packagerootName- The top-level Python import/member namenestedMemberNames- The nested member names below the root classdisplayName- The class display name used in diagnosticscacheKey- The stable class cache key used by pooled contexts
-
-
Method Details
-
nestedMemberNames
Returns the value of thenestedMemberNamesrecord component.- Returns:
- the value of the
nestedMemberNamesrecord component
-
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). -
packageName
Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
rootName
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
cacheKey
-