|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsugar4j.lang.Tag
public class Tag
A tag within the code which is replaced by dynamic content after sugar is created.
A tag consists of a name, which designates a placeholder for the tag's content.
I.e. for the ImportManager, the import list is known only after all Sugar4j's
content is written. So the ImportManager inserts a tag at the import list's
position (at the top) and after all content is created, the tag is replaced by the actual import
list.
| Nested Class Summary | |
|---|---|
static interface |
Tag.Content
Obtains the tag's content. |
| Constructor Summary | |
|---|---|
Tag(String name,
Tag.Content content)
Constructor. |
|
| Method Summary | |
|---|---|
Tag.Content |
getContent()
Returns the tag's content. |
String |
getName()
Returns the name of the tag. |
String |
replace(String content)
|
| Constructor Detail |
|---|
public Tag(String name,
Tag.Content content)
name - content - | Method Detail |
|---|
public String getName()
public Tag.Content getContent()
public String replace(String content)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||