Class NumericOpGen

    • Constructor Summary

      Constructors 
      Constructor Description
      NumericOpGen​(String javaOperator, org.apache.sling.scripting.sightly.compiler.expression.nodes.BinaryOperator binaryOperator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.sling.scripting.sightly.java.compiler.impl.Type commonType​(org.apache.sling.scripting.sightly.java.compiler.impl.Type leftType, org.apache.sling.scripting.sightly.java.compiler.impl.Type rightType)  
      void generate​(org.apache.sling.scripting.sightly.java.compiler.impl.JavaSource source, org.apache.sling.scripting.sightly.java.compiler.impl.ExpressionTranslator visitor, TypedNode left, TypedNode right)  
      org.apache.sling.scripting.sightly.java.compiler.impl.Type returnType​(org.apache.sling.scripting.sightly.java.compiler.impl.Type leftType, org.apache.sling.scripting.sightly.java.compiler.impl.Type rightType)  
    • Constructor Detail

      • NumericOpGen

        public NumericOpGen​(String javaOperator,
                            org.apache.sling.scripting.sightly.compiler.expression.nodes.BinaryOperator binaryOperator)
    • Method Detail

      • returnType

        public org.apache.sling.scripting.sightly.java.compiler.impl.Type returnType​(org.apache.sling.scripting.sightly.java.compiler.impl.Type leftType,
                                                                                     org.apache.sling.scripting.sightly.java.compiler.impl.Type rightType)
        Specified by:
        returnType in interface BinaryOpGen
      • generate

        public void generate​(org.apache.sling.scripting.sightly.java.compiler.impl.JavaSource source,
                             org.apache.sling.scripting.sightly.java.compiler.impl.ExpressionTranslator visitor,
                             TypedNode left,
                             TypedNode right)
        Specified by:
        generate in interface BinaryOpGen
      • commonType

        protected org.apache.sling.scripting.sightly.java.compiler.impl.Type commonType​(org.apache.sling.scripting.sightly.java.compiler.impl.Type leftType,
                                                                                        org.apache.sling.scripting.sightly.java.compiler.impl.Type rightType)