|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bpp.StageFilter bpp.BPPFilter
This is the specific StageFilter for beanshell.
This is a self-deepening filter to recursively preprocess multiple stages of a BPP source file. Such a filter is configured and used by BPP to filter files.
This is a USE ONCE FILTER. The pattern of use is:
Field Summary | |
static int |
DEFAULT_MAX_LINE_LENGTH
|
Fields inherited from class bpp.StageFilter |
lineNumber, maxLineLength, stage |
Constructor Summary | |
BPPFilter()
Use DEFAULT_MAX_LINE_LENGTH for the maximum line length. |
|
BPPFilter(int _maxLineLength)
This allows for any maximum line length. |
Method Summary | |
java.lang.String[] |
getArgs()
|
java.net.URL[] |
getClassPath()
|
java.lang.String |
getDestination()
|
java.io.PrintStream |
getErr()
get the error stream for spawned interpreters (null for default) |
int |
getLineStage(java.lang.String line)
Parse line and determine which stage should be in place to interpret it. |
int |
getMinStage()
|
bsh.NameSpace |
getNameSpace()
get the namespace for spawned interpreters (null for default) |
bsh.Interpreter |
getParent()
get the parent for spawned interpreters (null for default) |
java.lang.String |
getSource()
|
Filter |
getStageFilter()
Produce filter appropriate for a given stage. |
java.util.Map |
getStageMap()
|
void |
setArgs(java.lang.String[] _args)
Convenience method. |
void |
setClassPath(java.net.URL[] _classPath)
|
void |
setDestination(java.lang.String _destination)
Convenience method. |
void |
setErr(java.io.PrintStream _err)
set the error stream for spawned interpreters (null for default) |
void |
setMinStage(int _minStage)
Skip later preprocessing stages. |
void |
setModeExact()
Lines that do not begin with a pound(#), quote, (') or double quote("), are subject to some default translation. |
void |
setModeMagic()
Lines that do not begin with a pound(#), quote, (') or double quote("), are subject to some default translation. |
void |
setNameSpace(bsh.NameSpace _nameSpace)
set the namespace for spawned interpreters (null for default) |
void |
setParent(bsh.Interpreter _parent)
set the parent for spawned interpreters (null for default) |
void |
setSource(java.lang.String _source)
When new stages are forked, this is the source name given to the beanshell interpreter, with [ depth ] appended, so errors can be conveniently identified. |
void |
setStageMap(java.util.Map _stageMap)
|
Methods inherited from class bpp.StageFilter |
filter, getLineNumber |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_MAX_LINE_LENGTH
Constructor Detail |
public BPPFilter()
public BPPFilter(int _maxLineLength)
Method Detail |
public java.io.PrintStream getErr()
public void setErr(java.io.PrintStream _err)
public bsh.NameSpace getNameSpace()
public void setNameSpace(bsh.NameSpace _nameSpace)
public bsh.Interpreter getParent()
public void setParent(bsh.Interpreter _parent)
public void setSource(java.lang.String _source)
public java.lang.String getSource()
public void setDestination(java.lang.String _destination)
public java.lang.String getDestination()
public void setArgs(java.lang.String[] _args)
public java.lang.String[] getArgs()
public void setClassPath(java.net.URL[] _classPath)
public java.net.URL[] getClassPath()
public void setMinStage(int _minStage)
Skip later preprocessing stages.
The normal stages generated by the preprocessor are:
stage | 1 | 2 | 3 | 4 | ... |
stage | #interpreter | #decorator | ##interpreter | ##decorator | ... |
public int getMinStage()
public java.util.Map getStageMap()
public void setStageMap(java.util.Map _stageMap)
public void setModeExact()
public void setModeMagic()
public int getLineStage(java.lang.String line)
getLineStage
in class StageFilter
public Filter getStageFilter()
getStageFilter
in class StageFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |