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

public abstract Class DPattern

extends Object
implements ParsedPattern
Class Inheritance
All Implemented Interfaces
com.sun.tools.rngom.ast.om.ParsedPattern
Known Direct Subclasses
com.sun.tools.rngom.digested.DRefPattern, com.sun.tools.rngom.digested.DTextPattern, com.sun.tools.rngom.digested.DUnaryPattern, com.sun.tools.rngom.digested.DValuePattern, com.sun.tools.rngom.digested.DNotAllowedPattern, com.sun.tools.rngom.digested.DContainerPattern, com.sun.tools.rngom.digested.DDataPattern, com.sun.tools.rngom.digested.DEmptyPattern, com.sun.tools.rngom.digested.DGrammarPattern
Imports
com.sun.tools.rngom.ast.om.ParsedPattern, com.sun.tools.rngom.parse.Parseable, org.xml.sax.Locator

Base class of all the patterns.
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
pack-priv DAnnotation
pack-priv Locator
pack-priv DPattern
next

Used to chain the child patterns in a doubly-linked list.

pack-priv DPattern

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract <V> V
accept(DPatternVisitor<V> visitor)

public Parseable
createParseable()

Creates a Parseable object that reparses this pattern.

public DAnnotation

Returns:

may be empty, but never be null.
getAnnotation
()

Returns the annotation associated with it.

public Locator
getLocation()

Returns where the pattern is defined in the source code.

public final boolean
isAttribute()

Returns true if this is DAttributePattern.

public final boolean
isElement()

Returns true if this is DElementPattern.

public abstract boolean
isNullable()

Returns true if this pattern is nullable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

annotationback to summary
pack-priv DAnnotation annotation
locationback to summary
pack-priv Locator location
nextback to summary
pack-priv DPattern next

Used to chain the child patterns in a doubly-linked list.

prevback to summary
pack-priv DPattern prev

Constructor Detail

DPatternback to summary
public DPattern()

Method Detail

acceptback to summary
public abstract <V> V accept(DPatternVisitor<V> visitor)
createParseableback to summary
public Parseable createParseable()

Creates a Parseable object that reparses this pattern.

getAnnotationback to summary
public DAnnotation getAnnotation()

Returns the annotation associated with it.

Returns:DAnnotation

may be empty, but never be null.

getLocationback to summary
public Locator getLocation()

Returns where the pattern is defined in the source code.

isAttributeback to summary
public final boolean isAttribute()

Returns true if this is DAttributePattern.

isElementback to summary
public final boolean isElement()

Returns true if this is DElementPattern.

isNullableback to summary
public abstract boolean isNullable()

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