Class ClientlibDebugConsolePlugin.DebugVisitor
- java.lang.Object
-
- com.composum.sling.clientlibs.processor.AbstractClientlibVisitor
-
- com.composum.sling.clientlibs.servlet.ClientlibDebugConsolePlugin.DebugVisitor
-
- All Implemented Interfaces:
ClientlibVisitor
- Enclosing class:
- ClientlibDebugConsolePlugin
protected class ClientlibDebugConsolePlugin.DebugVisitor extends AbstractClientlibVisitor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.composum.sling.clientlibs.handle.ClientlibVisitor
ClientlibVisitor.VisitorMode
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
INDENTAMOUNT
protected int
indentation
protected PrintWriter
writer
-
Fields inherited from class com.composum.sling.clientlibs.processor.AbstractClientlibVisitor
embeddedHash, hasEmbeddedFiles, HASH_PATTERN, LOG, owner, processedElements, resolver, service
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DebugVisitor(ClientlibElement owner, ClientlibService service, org.apache.sling.api.resource.ResourceResolver resolver, PrintWriter writer)
-
Method Summary
-
Methods inherited from class com.composum.sling.clientlibs.processor.AbstractClientlibVisitor
action, action, action, action, action, alreadyProcessed, execute, getHash, getOwner, getProcessedElements, getVisitorFor, removeMinificationDuplicates, resolveAndAccept, supportsEmbedding, updateHash
-
-
-
-
Field Detail
-
INDENTAMOUNT
protected static final int INDENTAMOUNT
- See Also:
- Constant Field Values
-
indentation
protected int indentation
-
writer
protected final PrintWriter writer
-
-
Constructor Detail
-
DebugVisitor
protected DebugVisitor(ClientlibElement owner, ClientlibService service, org.apache.sling.api.resource.ResourceResolver resolver, PrintWriter writer)
-
-
Method Detail
-
createVisitorFor
protected ClientlibVisitor createVisitorFor(ClientlibElement element)
Description copied from class:AbstractClientlibVisitor
Creates a new visitor for the given clientlib or category as owner. That'll usually be of the same type as ourselves. Caution: they have to share the sameAbstractClientlibVisitor.processedElements
set!- Specified by:
createVisitorFor
in classAbstractClientlibVisitor
-
isNotProcessed
protected boolean isNotProcessed(ClientlibRef ref)
Description copied from class:AbstractClientlibVisitor
Checks whether something matching this reference has already beenAbstractClientlibVisitor.markAsProcessed(ClientlibLink, ClientlibResourceFolder, VisitorMode)
.- Overrides:
isNotProcessed
in classAbstractClientlibVisitor
-
markAsProcessed
protected void markAsProcessed(ClientlibLink link, ClientlibResourceFolder parent, ClientlibVisitor.VisitorMode visitorMode)
Description copied from class:AbstractClientlibVisitor
Marks a link processed for current clientlib call (that is, clientlib tag call).- Overrides:
markAsProcessed
in classAbstractClientlibVisitor
-
notPresent
protected void notPresent(ClientlibRef ref, ClientlibVisitor.VisitorMode mode, ClientlibResourceFolder folder)
Description copied from class:AbstractClientlibVisitor
Hook for additional checks about an element referenced but not present. Default: debuglog.- Overrides:
notPresent
in classAbstractClientlibVisitor
-
visit
public void visit(ClientlibCategory category, ClientlibVisitor.VisitorMode mode, ClientlibResourceFolder parent) throws IOException, javax.jcr.RepositoryException
- Specified by:
visit
in interfaceClientlibVisitor
- Overrides:
visit
in classAbstractClientlibVisitor
- Throws:
IOException
javax.jcr.RepositoryException
-
visit
public void visit(Clientlib clientlib, ClientlibVisitor.VisitorMode mode, ClientlibResourceFolder parent) throws IOException, javax.jcr.RepositoryException
- Specified by:
visit
in interfaceClientlibVisitor
- Overrides:
visit
in classAbstractClientlibVisitor
- Throws:
IOException
javax.jcr.RepositoryException
-
visit
public void visit(ClientlibResourceFolder folder, ClientlibVisitor.VisitorMode mode, ClientlibResourceFolder parent) throws IOException, javax.jcr.RepositoryException
- Specified by:
visit
in interfaceClientlibVisitor
- Overrides:
visit
in classAbstractClientlibVisitor
- Throws:
IOException
javax.jcr.RepositoryException
-
visit
public void visit(ClientlibFile file, ClientlibVisitor.VisitorMode mode, ClientlibResourceFolder parent) throws javax.jcr.RepositoryException, IOException
- Specified by:
visit
in interfaceClientlibVisitor
- Overrides:
visit
in classAbstractClientlibVisitor
- Throws:
javax.jcr.RepositoryException
IOException
-
visit
public void visit(ClientlibExternalUri externalUri, ClientlibVisitor.VisitorMode mode, ClientlibResourceFolder parent)
- Specified by:
visit
in interfaceClientlibVisitor
- Overrides:
visit
in classAbstractClientlibVisitor
-
-