|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttreebolic.provider.text.indent.Provider
public class Provider
Provider for file system
Nested Class Summary | |
---|---|
private class |
Provider.StackEntry
Stack entry |
Field Summary | |
---|---|
private static java.awt.Color |
theBackgroundColor
|
private IProviderContext |
theContext
Provider context |
Constructor Summary | |
---|---|
Provider()
Constructor |
Method Summary | |
---|---|
void |
connect(IProviderContext thisContext)
Called by framework to pass context reference (may default to void action if provider does not need it) |
private int |
getLevel(java.lang.String thisLine)
Get level (as per indentation) |
Model |
makeModel(java.lang.String thisSource)
Make model |
Tree |
makeTree(java.lang.String thisSource,
boolean checkRecursion)
Make tree. |
private Tree |
parseTree(java.net.URL thisUrl)
Parse tree |
private void |
processLine(java.lang.String thisLine,
int thisLineNumber,
java.util.Deque<Provider.StackEntry> thisStack)
Process line |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.awt.Color theBackgroundColor
private IProviderContext theContext
Constructor Detail |
---|
public Provider()
Method Detail |
---|
public void connect(IProviderContext thisContext)
IProvider
connect
in interface IProvider
thisContext
- contextpublic Model makeModel(java.lang.String thisSource)
IProvider
makeModel
in interface IProvider
thisSource
- source (a string that refers to the data in a was that the provider implementation will understand)
public Tree makeTree(java.lang.String thisSource, boolean checkRecursion)
IProvider
makeTree
in interface IProvider
thisSource
- source (a string that refers to the data in a was that the provider implementation will understand)checkRecursion
- whether immediate recursion is checked (avoid mount-now infinite recursion)
private Tree parseTree(java.net.URL thisUrl)
thisUrl
- text file URL
private void processLine(java.lang.String thisLine, int thisLineNumber, java.util.Deque<Provider.StackEntry> thisStack)
thisLine
- linethisLineNumber
- line numberthisStack
- node stackprivate int getLevel(java.lang.String thisLine)
thisLine
- line
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |