Class RHSPhase

java.lang.Object
org.drools.mvelcompiler.RHSPhase
All Implemented Interfaces:
com.github.javaparser.ast.visitor.GenericVisitor<TypedExpression,VisitorContext>, DrlGenericVisitor<TypedExpression,VisitorContext>

public class RHSPhase extends Object implements DrlGenericVisitor<TypedExpression,VisitorContext>
This phase processes the right hand side of a Java Expression and creates a new AST with the transformation rules applied i.e. person.name; becomes person.getName(); It also returns the type of the expression, useful in the subsequent phase in which we might need to create new variables accordingly.