Package relaxngcc.builder
Class ScopeCollector
- java.lang.Object
-
- relaxngcc.builder.ScopeCollector
-
- All Implemented Interfaces:
PatternFunction
public class ScopeCollector extends java.lang.Object implements PatternFunction
Traverses a grammar and collects allScopeobjects. This object serves as a function and returns aSetthat contains all Scopes found in the specified pattern.- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
-
Constructor Summary
Constructors Constructor Description ScopeCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(BuildError err)java.lang.Objectattribute(AttributePattern p)java.lang.Objectchoice(ChoicePattern p)java.lang.Objectdata(DataPattern p)java.lang.Objectelement(ElementPattern p)java.lang.Objectempty(EmptyPattern p)java.lang.Objectgroup(GroupPattern p)java.lang.Objectinterleave(InterleavePattern p)java.util.IteratoriterateErrors()java.lang.ObjectjavaBlock(JavaBlock p)java.lang.Objectlist(ListPattern p)java.lang.ObjectnotAllowed(NotAllowedPattern p)java.lang.ObjectoneOrMore(OneOrMorePattern p)java.lang.Objectref(RefPattern p)java.lang.Objectscope(Scope scope)java.lang.Objectvalue(ValuePattern p)
-
-
-
Method Detail
-
empty
public java.lang.Object empty(EmptyPattern p)
- Specified by:
emptyin interfacePatternFunction
-
notAllowed
public java.lang.Object notAllowed(NotAllowedPattern p)
- Specified by:
notAllowedin interfacePatternFunction
-
data
public java.lang.Object data(DataPattern p)
- Specified by:
datain interfacePatternFunction
-
value
public java.lang.Object value(ValuePattern p)
- Specified by:
valuein interfacePatternFunction
-
javaBlock
public java.lang.Object javaBlock(JavaBlock p)
- Specified by:
javaBlockin interfacePatternFunction
-
group
public java.lang.Object group(GroupPattern p)
- Specified by:
groupin interfacePatternFunction
-
interleave
public java.lang.Object interleave(InterleavePattern p)
- Specified by:
interleavein interfacePatternFunction
-
choice
public java.lang.Object choice(ChoicePattern p)
- Specified by:
choicein interfacePatternFunction
-
oneOrMore
public java.lang.Object oneOrMore(OneOrMorePattern p)
- Specified by:
oneOrMorein interfacePatternFunction
-
element
public java.lang.Object element(ElementPattern p)
- Specified by:
elementin interfacePatternFunction
-
attribute
public java.lang.Object attribute(AttributePattern p)
- Specified by:
attributein interfacePatternFunction
-
list
public java.lang.Object list(ListPattern p)
- Specified by:
listin interfacePatternFunction
-
ref
public java.lang.Object ref(RefPattern p)
- Specified by:
refin interfacePatternFunction
-
scope
public java.lang.Object scope(Scope scope)
- Specified by:
scopein interfacePatternFunction
-
addError
public void addError(BuildError err)
- Specified by:
addErrorin interfacePatternFunction
-
iterateErrors
public java.util.Iterator iterateErrors()
-
-