Class LengthOpGen

  • All Implemented Interfaces:
    UnaryOpGen

    public final class LengthOpGen
    extends Object
    implements UnaryOpGen
    Generator for the collection length operator
    • Field Detail

    • Method Detail

      • returnType

        public org.apache.sling.scripting.sightly.java.compiler.impl.Type returnType​(org.apache.sling.scripting.sightly.java.compiler.impl.Type operandType)
        Specified by:
        returnType in interface UnaryOpGen
      • 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 typedNode)
        Specified by:
        generate in interface UnaryOpGen