1. Project Clover database Sat Feb 2 2019 06:45:20 CET
  2. Package org.xwiki.rendering.internal.renderer.xwiki20

File XWikiSyntaxListenerChain.java

 

Coverage histogram

../../../../../../img/srcFileCovDistChart8.png
56% of files have more coverage

Code metrics

0
4
4
1
67
25
4
1
1
4
1

Classes

Class Line # Actions
XWikiSyntaxListenerChain 34 4 0% 4 2
0.7575%
 

Contributing tests

This file is covered by 260 tests. .

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package org.xwiki.rendering.internal.renderer.xwiki20;
21   
22    import org.xwiki.rendering.listener.chaining.BlockStateChainingListener;
23    import org.xwiki.rendering.listener.chaining.ConsecutiveNewLineStateChainingListener;
24    import org.xwiki.rendering.listener.chaining.GroupStateChainingListener;
25    import org.xwiki.rendering.listener.chaining.ListenerChain;
26    import org.xwiki.rendering.listener.chaining.LookaheadChainingListener;
27   
28    /**
29    * Provides convenient access to listeners in the chain used for {@link XWikiSyntaxListenerChain}.
30    *
31    * @version $Id: 55d14d9875edea727ff638057bc395066590c66b $
32    * @since 1.8RC1
33    */
 
34    public class XWikiSyntaxListenerChain extends ListenerChain
35    {
36    /**
37    * @return the stateful {@link LookaheadChainingListener} for this rendering session.
38    */
 
39  312 toggle public LookaheadChainingListener getLookaheadChainingListener()
40    {
41  312 return (LookaheadChainingListener) getListener(LookaheadChainingListener.class);
42    }
43   
44    /**
45    * @return the stateful {@link BlockStateChainingListener} for this rendering session.
46    */
 
47  2308 toggle public BlockStateChainingListener getBlockStateChainingListener()
48    {
49  2308 return (BlockStateChainingListener) getListener(BlockStateChainingListener.class);
50    }
51   
52    /**
53    * @return the stateful {@link ConsecutiveNewLineStateChainingListener} for this rendering session.
54    */
 
55  100 toggle public ConsecutiveNewLineStateChainingListener getConsecutiveNewLineStateChainingListener()
56    {
57  100 return (ConsecutiveNewLineStateChainingListener) getListener(ConsecutiveNewLineStateChainingListener.class);
58    }
59   
60    /**
61    * @return the stateful {@link GroupStateChainingListener} for this rendering session.
62    */
 
63  0 toggle public GroupStateChainingListener getGroupStateChainingListener()
64    {
65  0 return (GroupStateChainingListener) getListener(GroupStateChainingListener.class);
66    }
67    }