Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.kohsuke.rngom.digested
Class DPattern

    java.lang.Object
      org.kohsuke.rngom.digested.DPattern

All Implemented Interfaces:
  ParsedPattern

Direct Known Subclasses:
  DContainerPattern, DDataPattern, DEmptyPattern, DGrammarPattern, DNotAllowedPattern, DRefPattern, DTextPattern, DUnaryPattern, DValuePattern

    public abstract class DPattern

extends java.lang.Object
implements ParsedPattern

Base class of all the patterns.

Author:
  Kohsuke Kawaguchi (kk@kohsuke.org)

Constructor Summary
`DPattern()`

Method Summary
`abstract
`<V> V`
` | `accept(DPatternVisitor<V> visitor)`
`Parseable` | `createParseable()` Creates a `Parseable` object that reparses this pattern.
`DAnnotation` | `getAnnotation()` Returns the annotation associated with it.
`org.xml.sax.Locator` | `getLocation()` Returns where the pattern is defined in the source code.
`boolean` | `isAttribute()` Returns true if this is `DAttributePattern`.
`boolean` | `isElement()` Returns true if this is `DElementPattern`.
`abstract boolean` | `isNullable()` Returns true if this pattern is nullable.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DPattern

    public DPattern()

Method Detail

### getLocation

    public org.xml.sax.Locator getLocation()

  Returns where the pattern is defined in the source code.

### getAnnotation

    public DAnnotation getAnnotation()

  Returns the annotation associated with it.

  Returns:
    may be empty, but never be null.

### isNullable

    public abstract boolean isNullable()

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

### accept

    public abstract <V> V accept(DPatternVisitor<V> visitor)

### createParseable

    public Parseable createParseable()

  Creates a `Parseable` object that reparses this pattern.

### isElement

    public final boolean isElement()

  Returns true if this is `DElementPattern`.

### isAttribute

    public final boolean isAttribute()

  Returns true if this is `DAttributePattern`.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD