Package net.hydromatic.morel.util
Class Folder<E>
java.lang.Object
net.hydromatic.morel.util.Folder<E>
- Type Parameters:
E- Element type
- Direct Known Subclasses:
Folder.End
Enable creating right-deep trees.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classSub-class ofFolderthat marks the end of a list. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <E> voidAdds an element and operator to a non-empty list.static voidAppends an element using "@".(package private) abstract Estatic <E> EcombineAll(List<Folder<E>> list) static voidAppends an element using "::".private static <E> Folder<E> end(E e) Creates a folder that combines an expression with whatever follows using an infix operator.static <E> voidAdds an element to an empty list.
-
Field Details
-
e
-
-
Constructor Details
-
Folder
Folder(E e)
-
-
Method Details
-
combine
-
combineAll
-
end
-
at
Appends an element using "@". -
cons
Appends an element using "::". -
start
Adds an element to an empty list. -
append
Adds an element and operator to a non-empty list. -
op
Creates a folder that combines an expression with whatever follows using an infix operator.
-