org.netbeans.api.editor.fold
Class FoldType
java.lang.Object
org.netbeans.api.editor.fold.FoldType
public final class FoldType
- extends Object
Each Fold
is identified by its fold type.
Each fold type presents a fold type acceptor as well
accepting just itself.
As the equals()
method is declared final
(delegating to super
) the fold types
can directly be compared by using ==
operator.
Fold providers should export all the fold types
that they provide in their APIs so that the
clients can use these fold types in operations
with the fold hierarchy.
Constructor Summary |
FoldType(String description)
Construct fold type with the given description. |
FoldType
public FoldType(String description)
- Construct fold type with the given description.
- Parameters:
description
- textual description of the fold type.
Two fold types with the same description are not equal.
accepts
public boolean accepts(FoldType type)
toString
public String toString()
- Overrides:
toString
in class Object