|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kefirsf.bb.proc.Context
public class Context
The bb-processing context
| Constructor Summary | |
|---|---|
Context()
Default constructor |
|
Context(Context parent)
Constructor of child-context |
|
| Method Summary | |
|---|---|
void |
addBadTag(int offset)
Add the bag tag position |
boolean |
checkBadTag(int offset)
Check the bag tag |
void |
checkNesting()
Check nesting. |
Object |
getAttribute(String name)
Get the context attribute. |
Object |
getLocalAttribute(String name)
Return attribute from this context, not parent |
ProcScope |
getScope()
|
Source |
getSource()
|
Appendable |
getTarget()
|
ProcPatternElement |
getTerminator()
get Text terminator,this mark stop text processing |
boolean |
hasNextAdjustedForTerminator()
Check has chars in source before terminator or not |
void |
mergeWithParent()
Put all local attributes to parent context |
void |
setAttribute(String name,
Object value)
Add or set context attribute |
void |
setNestingLimit(int nestingLimit)
Set nesting limit for this context. |
void |
setScope(ProcScope scope)
Set list of codes in current context |
void |
setSource(Source source)
|
void |
setTarget(Appendable target)
|
void |
setTerminator(ProcPatternElement terminator)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Context()
public Context(Context parent)
parent - parent context| Method Detail |
|---|
public void addBadTag(int offset)
offset - offset of bad tag in sourcepublic boolean checkBadTag(int offset)
offset - offset of tag
public boolean hasNextAdjustedForTerminator()
public void mergeWithParent()
public void setAttribute(String name,
Object value)
name - attribute namevalue - attribute valuepublic Object getAttribute(String name)
name - attribute name
public Object getLocalAttribute(String name)
name - attribute name
public void setScope(ProcScope scope)
scope - code scopepublic Source getSource()
public void setSource(Source source)
public Appendable getTarget()
public void setTarget(Appendable target)
public ProcPatternElement getTerminator()
public void setTerminator(ProcPatternElement terminator)
terminator - Text terminator,this mark stop text processingpublic ProcScope getScope()
public void setNestingLimit(int nestingLimit)
nestingLimit - nesting limit
public void checkNesting()
throws org.kefirsf.bb.proc.NestingException
NestingException - if nesting limit less than 0.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||