| Access | Constructor and Description |
|---|---|
| private | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public List | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| private String | |
| public Block | |
| public String | |
| public int | |
| public boolean | |
| public boolean | |
| public Block | instantiateTemplate(Map<String, String> parameters)
replace all occurrences of @KEY@ with parameters.get( KEY ). |
| public Pair | splitFirst()
Split block into two blocks, with only the first line of the original Block in result.first(). |
| public Block | |
| public String | |
| public void |
| data | back to summary |
|---|---|
| private List<String> data | |
| tags | back to summary |
|---|---|
| private final Set<String> tags | |
| Block | back to summary |
|---|---|
| private Block(final List<String> data, final Set<String> tags) | |
| Block | back to summary |
|---|---|
| public Block(final List<String> data) Create a new Block from a list of strings. | |
| Block | back to summary |
|---|---|
| public Block(final Block block) Create a new Block which is a copy of block. | |
| addAfterLast | back to summary |
|---|---|
| public void addAfterLast(final String str) Add String after the end of the block. | |
| addBeforeFirst | back to summary |
|---|---|
| public void addBeforeFirst(final String str) Add String before the start of the block. | |
| addPrefixToAll | back to summary |
|---|---|
| public void addPrefixToAll(String prefix) Add the prefix to each string in the block. | |
| addTag | back to summary |
|---|---|
| public void addTag(final String tag) Add a tag to the block. Useful for classifying blocks. | |
| contents | back to summary |
|---|---|
| public List Get the contents of the block. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| expandTabs | back to summary |
|---|---|
| private String expandTabs(String src) | |
| expandTabs | back to summary |
|---|---|
| public Block expandTabs() Replace tabs with spaces, assuming tab stops are located as usual at n*8 + 1 | |
| find | back to summary |
|---|---|
| public String find(final String search) Return the first string in the block that contains the search string. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasTag | back to summary |
|---|---|
| public boolean hasTag(final String tag) Return whether or not a block has a particular tag. | |
| hasTags | back to summary |
|---|---|
| public boolean hasTags(final String... tags) Return whether or not a block has ALL of the listed tags. | |
| instantiateTemplate | back to summary |
|---|---|
| public Block instantiateTemplate(Map<String, String> parameters) replace all occurrences of @KEY@ with parameters.get( KEY ). This is very simple: only one scan is made, so @...@ patterns in the parameters values are ignored. | |
| splitFirst | back to summary |
|---|---|
| public Pair Split block into two blocks, with only the first line of the original Block in result.first(). | |
| substitute | back to summary |
|---|---|
| public Block substitute(List<? extends Pair<String, String>> substitutions) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| write | back to summary |
|---|---|
| public void write(final FileWrapper fw) throws IOException Write block to FileWrapper. FileWrapper must be open for writing. | |