| Package | Description |
|---|---|
| org.glassfish.pfl.basic.tools.file |
| Modifier and Type | Method and Description |
|---|---|
Block |
Block.expandTabs()
Replace tabs with spaces, assuming tab stops are located as usual at n*8 + 1
|
static Block |
BlockParser.getBlock(FileWrapper fw)
Return the contents of the text file as a Block.
|
Block |
Block.instantiateTemplate(Map<String,String> parameters)
replace all occurrences of @KEY@ with parameters.get( KEY ).
|
Block |
Block.substitute(List<? extends Pair<String,String>> substitutions) |
| Modifier and Type | Method and Description |
|---|---|
static List<Block> |
BlockParser.parseBlocks(FileWrapper fw,
String prefix)
Transform fw into a list of blocks.
|
static List<Block> |
BlockParser.parseBlocks(FileWrapper fw,
String start,
String end)
Transform fw into a list of blocks.
|
Pair<Block,Block> |
Block.splitFirst()
Split block into two blocks, with only the
first line of the original Block in result.first().
|
Pair<Block,Block> |
Block.splitFirst()
Split block into two blocks, with only the
first line of the original Block in result.first().
|
| Constructor and Description |
|---|
Block(Block block)
Create a new Block which is a copy of block.
|
Copyright © 2011–2019 Eclipse Foundation. All rights reserved.