Class NumericOpGen
- java.lang.Object
-
- org.apache.sling.scripting.sightly.java.compiler.impl.operator.NumericOpGen
-
- All Implemented Interfaces:
BinaryOpGen
- Direct Known Subclasses:
LongOpGen
public class NumericOpGen extends Object implements BinaryOpGen
Generator for numeric value
-
-
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.TypecommonType(org.apache.sling.scripting.sightly.java.compiler.impl.Type leftType, org.apache.sling.scripting.sightly.java.compiler.impl.Type rightType)voidgenerate(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.TypereturnType(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:
returnTypein interfaceBinaryOpGen
-
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:
generatein interfaceBinaryOpGen
-
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)
-
-