|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtend.middleend.xpand.internal.xpandlib.pr.XpandProtectedRegionResolver
public class XpandProtectedRegionResolver
Nested Class Summary | |
---|---|
class |
XpandProtectedRegionResolver.XpandProtectedRegion
|
Field Summary | |
---|---|
static java.lang.String |
XPAND_PROTECTED_REGION_RESOLVER
|
Constructor Summary | |
---|---|
XpandProtectedRegionResolver()
|
|
XpandProtectedRegionResolver(java.lang.String ignoreList,
boolean defaultExcludes,
java.util.List<Outlet> outlets,
java.lang.String fileEncoding,
boolean useBase64)
|
Method Summary | |
---|---|
XpandProtectedRegionResolver.XpandProtectedRegion |
createProtectedRegion(java.lang.String id,
boolean disabled)
Factory method to create an XpandProtectedRegion |
XpandProtectedRegionResolver.XpandProtectedRegion |
getProtectedRegion(java.lang.String id)
|
void |
init()
Initializes the XpandProtectedRegionResolver. |
boolean |
isRegistered(XpandProtectedRegionResolver.XpandProtectedRegion region)
|
void |
register(XpandProtectedRegionResolver.XpandProtectedRegion region)
Register a protected region under it's ID |
void |
reportRegions(java.io.File dumpPath)
Dumps all known protected regions to files. |
void |
setDefaultExcludes(boolean defaultExcludes)
This flag determines whether default file exclusion patterns should be used. |
void |
setFileEncoding(java.lang.String encoding)
Sets the file encoding to be used when reading files. |
void |
setIgnoreList(java.lang.String ignoreList)
Sets a custom list of file patterns that should be filtered during scanning of source files and directories. |
void |
setSrcPathes(java.lang.String srcPathsAsString)
Sets the source paths that should be scanned. |
void |
setUseBASE64(boolean useBASE64)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XPAND_PROTECTED_REGION_RESOLVER
Constructor Detail |
---|
public XpandProtectedRegionResolver()
public XpandProtectedRegionResolver(java.lang.String ignoreList, boolean defaultExcludes, java.util.List<Outlet> outlets, java.lang.String fileEncoding, boolean useBase64)
Method Detail |
---|
public void init() throws DuplicateXpandProtectedRegionException
A second call (already initialized) to this method will return immediately. The method should be called lazily.
DuplicateXpandProtectedRegionException
- If a Protected Region Id is detected the second time, i.e. it is not unique.public XpandProtectedRegionResolver.XpandProtectedRegion getProtectedRegion(java.lang.String id)
public XpandProtectedRegionResolver.XpandProtectedRegion createProtectedRegion(java.lang.String id, boolean disabled)
public void register(XpandProtectedRegionResolver.XpandProtectedRegion region) throws DuplicateXpandProtectedRegionException
region
-
DuplicateXpandProtectedRegionException
public boolean isRegistered(XpandProtectedRegionResolver.XpandProtectedRegion region)
public void reportRegions(java.io.File dumpPath)
dumpPath
- Directory where the dump files are created within.public void setDefaultExcludes(boolean defaultExcludes)
defaultExcludes
- true
: Use default file exclusion patterns, false
: ignore them, just use
the patterns specified by ignoreList
reference manual
public void setFileEncoding(java.lang.String encoding)
encoding
- A valid encoding string.public void setIgnoreList(java.lang.String ignoreList)
ignoreList
- A comma separated list of file patterns to ignore during scan.public void setSrcPathes(java.lang.String srcPathsAsString) throws java.lang.IllegalArgumentException
srcPathsAsString
- A comma separated list of directory paths.
java.lang.IllegalArgumentException
- If one of the passed arguments is not a directory or does not existpublic void setUseBASE64(boolean useBASE64)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |