Class Expression

    • Constructor Detail

      • Expression

        public Expression​(ExpressionType nodeType,
                          java.lang.reflect.Type type)
        Creates an Expression.

        The type of the expression may, at the caller's discretion, be a regular class (because Class implements Type) or it may be a different implementation that retains information about type parameters.

        Parameters:
        nodeType - Node type
        type - Type of the expression
    • Method Detail

      • canReduce

        public boolean canReduce()
        Indicates that the node can be reduced to a simpler node. If this returns true, Reduce() can be called to produce the reduced form.