Class NumericOpGen
java.lang.Object
org.apache.sling.scripting.sightly.java.compiler.impl.operator.NumericOpGen
- All Implemented Interfaces:
BinaryOpGen
- Direct Known Subclasses:
LongOpGen
Generator for numeric value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
NumericOpGen
-
-
Method Details
-
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 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:
generate
in 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)
-