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.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 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:
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)
-