Record Class GrammarTreeEngine.TreeInspection
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.repr.grammar.GrammarTreeEngine.TreeInspection
- Enclosing class:
GrammarTreeEngine
public static record GrammarTreeEngine.TreeInspection(DerivationTree tree, List<Integer> decisionVector, List<Double> ercValues, String infix, String prefix, String latex, String dot, Map<String,Object> ast, String astJson, TreeMetrics.Summary metrics)
extends Record
Tree inspection bundle.
-
Constructor Summary
ConstructorsConstructorDescriptionTreeInspection(DerivationTree tree, List<Integer> decisionVector, List<Double> ercValues, String infix, String prefix, String latex, String dot, Map<String, Object> ast, String astJson, TreeMetrics.Summary metrics) Creates an instance of aTreeInspectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionast()Returns the value of theastrecord component.astJson()Returns the value of theastJsonrecord component.Returns the value of thedecisionVectorrecord component.dot()Returns the value of thedotrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theercValuesrecord component.final inthashCode()Returns a hash code value for this object.infix()Returns the value of theinfixrecord component.latex()Returns the value of thelatexrecord component.metrics()Returns the value of themetricsrecord component.prefix()Returns the value of theprefixrecord component.final StringtoString()Returns a string representation of this record class.tree()Returns the value of thetreerecord component.
-
Constructor Details
-
TreeInspection
public TreeInspection(DerivationTree tree, List<Integer> decisionVector, List<Double> ercValues, String infix, String prefix, String latex, String dot, Map<String, Object> ast, String astJson, TreeMetrics.Summary metrics) Creates an instance of aTreeInspectionrecord class.- Parameters:
tree- the value for thetreerecord componentdecisionVector- the value for thedecisionVectorrecord componentercValues- the value for theercValuesrecord componentinfix- the value for theinfixrecord componentprefix- the value for theprefixrecord componentlatex- the value for thelatexrecord componentdot- the value for thedotrecord componentast- the value for theastrecord componentastJson- the value for theastJsonrecord componentmetrics- the value for themetricsrecord component
-
-
Method Details
-
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). -
tree
Returns the value of thetreerecord component.- Returns:
- the value of the
treerecord component
-
decisionVector
-
ercValues
-
infix
Returns the value of theinfixrecord component.- Returns:
- the value of the
infixrecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
latex
Returns the value of thelatexrecord component.- Returns:
- the value of the
latexrecord component
-
dot
Returns the value of thedotrecord component.- Returns:
- the value of the
dotrecord component
-
ast
-
astJson
Returns the value of theastJsonrecord component.- Returns:
- the value of the
astJsonrecord component
-
metrics
Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-