Top Description Fields Constructors Methods
com.sun.tools.rngom.digested

public Class DGrammarPattern

extends DPattern
implements Iterable<DDefine>
Class Inheritance
All Implemented Interfaces
java.lang.Iterable
Imports
java.util.HashMap, .Iterator, .Map

<grammar> pattern, which is a collection of named patterns.
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private final Map<String, DDefine>
pack-priv DPattern
Inherited from com.sun.tools.rngom.digested.DPattern:
annotationlocationnextprev

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <V> V
public DDefine

Returns:

null if not found.
get
(String name)

Gets the named pattern by its name.

pack-priv DDefine
public DPattern
getStart()

Gets the start pattern.

public boolean
isNullable()

Implements abstract com.sun.tools.rngom.digested.DPattern.isNullable.

Returns true if this pattern is nullable.

public Iterator<DDefine>
iterator()

Implements java.lang.Iterable.iterator.

Iterates all the DDefines in this grammar.

Inherited from com.sun.tools.rngom.digested.DPattern:
createParseablegetAnnotationgetLocationisAttributeisElement

Field Detail

patternsback to summary
private final Map<String, DDefine> patterns
startback to summary
pack-priv DPattern start

Constructor Detail

DGrammarPatternback to summary
public DGrammarPattern()

Method Detail

acceptback to summary
public <V> V accept(DPatternVisitor<V> visitor)

Implements abstract com.sun.tools.rngom.digested.DPattern.accept.

getback to summary
public DDefine get(String name)

Gets the named pattern by its name.

Returns:DDefine

null if not found.

getOrAddback to summary
pack-priv DDefine getOrAdd(String name)
getStartback to summary
public DPattern getStart()

Gets the start pattern.

isNullableback to summary
public boolean isNullable()

Implements abstract com.sun.tools.rngom.digested.DPattern.isNullable.

Doc from com.sun.tools.rngom.digested.DPattern.isNullable.

Returns true if this pattern is nullable. A nullable pattern is a pattern that can match the empty sequence.

iteratorback to summary
public Iterator<DDefine> iterator()

Implements java.lang.Iterable.iterator.

Iterates all the DDefines in this grammar.