Class Expressions.CaseOfMatchers.PartialMatcher<X>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Expression _expression  
      private java.util.function.Function<com.squareup.javapoet.CodeBlock,​X> baseExpression  
      private java.util.function.Function<java.util.function.UnaryOperator<com.squareup.javapoet.CodeBlock>,​X> recursiveExpression  
    • Constructor Summary

      Constructors 
      Constructor Description
      PartialMatcher​(Expression _expression, java.util.function.Function<com.squareup.javapoet.CodeBlock,​X> baseExpression, java.util.function.Function<java.util.function.UnaryOperator<com.squareup.javapoet.CodeBlock>,​X> recursiveExpression)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      X otherwise​(java.util.function.Supplier<X> otherwise)  
      X otherwise_​(X x)  
      java.util.Optional<X> otherwiseEmpty()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _expression

        private final Expression _expression
      • baseExpression

        private final java.util.function.Function<com.squareup.javapoet.CodeBlock,​X> baseExpression
      • recursiveExpression

        private final java.util.function.Function<java.util.function.UnaryOperator<com.squareup.javapoet.CodeBlock>,​X> recursiveExpression
    • Constructor Detail

      • PartialMatcher

        PartialMatcher​(Expression _expression,
                       java.util.function.Function<com.squareup.javapoet.CodeBlock,​X> baseExpression,
                       java.util.function.Function<java.util.function.UnaryOperator<com.squareup.javapoet.CodeBlock>,​X> recursiveExpression)
    • Method Detail

      • otherwise

        public final X otherwise​(java.util.function.Supplier<X> otherwise)
      • otherwise_

        public final X otherwise_​(X x)
      • otherwiseEmpty

        public final java.util.Optional<X> otherwiseEmpty()