ContentsQualifierProductionclass

parser.t[4274]

Superclass
Tree

Subclass
Tree

Global
Objects

Property
Summary

Method
Summary

Property
Details

Method
Details

ContentsQualifierProduction is a subclass of Production for phrases that involve contents qualifiers, as in “the bucket of water”.

Each grammar rule of this type needs to define two special ‘->’ associations in its template:

cont_ is the contents qualifier. This is also just an ordinary noun phrase. This is the “water” part in “bucket of water”.

prep_ is the preposition giving the relationship.

class ContentsQualifierProduction :   Production

Superclass Tree   (in declaration order)

ContentsQualifierProduction
Production
`                 object`

Subclass Tree  

ContentsQualifierProduction
nounPhraseWithContents(contents)
pluralPhraseWithContents(contents)
qualifiedPluralNounPhrase(theOnesContaining)
qualifiedSingularNounPhrase(theOneContaining)

Global Objects  

(none)

Summary of Properties  

Inherited from Production :
determiner nounPhraseRole npClass parent

Summary of Methods  

visitProd

Inherited from Production :
addNounListItem build findAction findChild findParent getNounPhraseRole getText getTokens grammarInfoForBuild isChildOf noteEndOfSentence visitLiteral

Properties  

(none)

Methods  

visitProd (cmd, np, prod)OVERRIDDEN

parser.t[4281]

Visit a production. When we process the contents qualifier phrase, we’ll build out the sub-tree in the context of a new NounPhrase, which we attach as a contents qualifier to the encompassing noun phrase under construction.

Adv3Lite Library Reference Manual
Generated on 15/03/2023 from adv3Lite version 1.6.1