Beispiel #1
0
        public static VariableComparator Create(string comparionOperator, Property lhs, CMethodBase lhs_m, Property rhs, CMethodBase rhs_m)
        {
            E_VariableComparisonType comparisonType = VariableComparator.ParseComparisonType(comparionOperator);

            VariableComparator pComparator = VariableComparator.Create(lhs, lhs_m, rhs, rhs_m);

            pComparator.SetComparisonType(comparisonType);

            return(pComparator);
        }
Beispiel #2
0
        public static VariableComparator Create(string typeName, string comparionOperator, Property lhs, Property rhs)
        {
            E_VariableComparisonType type = VariableComparator.ParseComparisonType(comparionOperator);

            if (Agent.IsAgentClassName(typeName))
            {
                typeName = "void*";
            }
            VariableComparator comparator = VariableComparator.Create(typeName, lhs, rhs);

            comparator.SetComparisonType(type);
            return(comparator);
        }
Beispiel #3
0
        public static VariableComparator Create(string typeName, string comparionOperator, Property lhs, Property rhs)
        {
            E_VariableComparisonType comparisonType = VariableComparator.ParseComparisonType(comparionOperator);

            //bool bAgentPtr = false;
            //it might be par or the right value of condition/assignment
            if (Agent.IsAgentClassName(typeName))
            {
                //bAgentPtr = true;
                typeName = "void*";
            }

            VariableComparator pComparator = VariableComparator.Create(typeName, lhs, rhs);

            pComparator.SetComparisonType(comparisonType);

            return(pComparator);
        }