|
WSF
|
#include <WsfParseAlternate.hpp>


Classes | |
| struct | CharacterAccelerator |
Public Member Functions | |
| WsfParseAlternate (WsfParseRuleMemory &aMem) | |
| ~WsfParseAlternate () override | |
| WsfParseAlternate (const WsfParseAlternate &)=default | |
| bool | Read (WsfParser &aParser, WsfParseNode *&aNode) override |
| bool | ReadRange (WsfParser &aParser, UtTextDocumentRange &aRange, WsfParseNode *&aNode, bool aCreateNode) override |
| virtual void | Initialize () |
| const std::vector< WsfParseRule * > & | GetReaders () const |
| std::vector< WsfParseRule * > | GetAlternates () override |
| const std::vector< WsfParseRule * > & | Alternates () const |
| std::vector< WsfParseRule * > & | Alternates () |
| std::vector< WsfParseRule * > & | ChangeAlternates () |
| void | AddAlternate (WsfParseRule *aSequence) |
| void | Swap (WsfParseAlternate &aRhs) |
| std::string | GetRuleDescription () override |
| Public Member Functions inherited from WsfParseRule | |
| WsfParseRule (WsfParseRuleMemory &aMem, RuleType aType) | |
| virtual | ~WsfParseRule ()=default |
| WsfParseRule (const WsfParseRule &)=default | |
| void | Swap (WsfParseRule &aRhs) |
| RuleType | Type () const |
| Returns an enumeration specifying the derived type of the reader. | |
| virtual void | Undo (WsfParser &aParser) |
| virtual void | Resolve (WsfParser &aParser, WsfParseNode *aNodePtr) |
| virtual void | Initialize (int aSequence) |
| virtual std::vector< WsfParseRule * > | GetSequence () |
| virtual WsfParseRuleDictionary * | GetNestedRules () |
| virtual WsfParseNamedRule * | GetContext () const |
| virtual WsfParseRule * | GetPassthrough () |
| virtual WsfParseValueType * | GetType () |
| If the rule is also a type, return the type. | |
| WsfParseStruct * | GetContainingStruct () const |
| WsfParseStruct * | GetStruct () |
| WsfParseNamedRule * | GetEntryType () |
| WsfParseNamedRule * | GetInputType () |
| WsfParseNamedRule * | GetOutputType () |
| WsfParseNamedRule * | GetBestContext () |
| WsfParseNamedRule * | GetVarContext () |
| bool | IsNamedRule () const |
| int | GetReaderFlags () const |
| WsfParseRule * | GetSubordinateRule () const |
| void | SetSubordinateRule (WsfParseRule *aRulePtr) |
Protected Member Functions | |
| int | ReaderStartsWithChar (WsfParseRule *aReaderPtr, char aChar) |
| void | ClearAccelerators () |
Protected Attributes | |
| std::vector< WsfParseRule * > | mAlternates |
| bool | mFixedLength |
| std::vector< CharacterAccelerator * > | mAccelerators |
| CharacterAccelerator | mUnfiltered |
| Protected Attributes inherited from WsfParseRule | |
| WsfParseRule * | mSubordinateRulePtr |
Additional Inherited Members | |
| Public Types inherited from WsfParseRule | |
| enum | RuleType { cNAMED_RULE , cVALUE , cSTRUCT , cSEQUENCE , cALTERNATE , cRECURRENCE , cRULE_REFERENCE , cREAL , cINT , cSTRING , cLINE_STRING , cQUOTED_STRING , cLITERAL , cDELIMITED , cTYPE_LOAD , cTYPE_COMMAND , cPASSTHROUGH , cSCRIPT_BLOCK } |
| enum | ReaderFlags { cCAN_RESOLVE = 1 , cCAN_UNDO = 2 , cIS_SINGLE_TOKEN = 4 , cIS_PASSTHROUGH = 8 , cIS_VALUE_RULE = 0x10 } |
| Public Attributes inherited from WsfParseRule | |
| RuleType | mRuleType |
| int | mReaderFlags |
| int | mUserId |
| WsfParseRule * | mParentRulePtr |
| Pointer to the parent rule. This should be valid for unnamed rules. | |
|
inline |
References WsfParseRule::cALTERNATE, mAccelerators, mFixedLength, mUnfiltered, and WsfParseRule::WsfParseRule().
Referenced by ReaderStartsWithChar(), Swap(), and WsfParseAlternate().
|
override |
References ClearAccelerators().
|
default |
References WsfParseAlternate().
| void WsfParseAlternate::AddAlternate | ( | WsfParseRule * | aSequence | ) |
References mAlternates, WsfParseRule::mParentRulePtr, and WsfParseRule::WsfParseRule().
|
inline |
References mAlternates.
|
inline |
References mAlternates.
Referenced by WsfPProxyActionLookup::GetRulesThatModifyAttribute(), WsfParseDefinitions::Initialize(), IsAnAlternate(), WsfPProxySatisfy::SatisfyAlternate(), and VerifyChild().
|
inline |
References mAlternates.
|
protected |
References mAccelerators.
Referenced by Initialize(), and ~WsfParseAlternate().
|
inlineoverridevirtual |
Reimplemented from WsfParseRule.
References mAlternates.
|
inline |
References mAlternates.
Referenced by wizard::AutoComplete::ExpandRule().
|
overridevirtual |
Reimplemented from WsfParseRule.
References mAlternates.
|
virtual |
|
overridevirtual |
Override to parse and generate a parse node. Parse nodes should be generated even on error conditions if possible.
| aParser | The parser. |
| aNode | Set to the resulting parse node. |
Implements WsfParseRule.
References WsfParseNode::Add(), WsfParser::ClearPartialMatches(), mAccelerators, mAlternates, WsfParseAlternate::CharacterAccelerator::mChildIndices, mUnfiltered, WsfParser::NewNode(), Read(), WsfParseRule::Read(), WsfParser::ReadWord(), WsfParser::UndoRead(), and WsfParseRule::WsfParseRule().
Referenced by Read().
|
protected |
References WsfParseRule::cALTERNATE, WsfParseRule::cINT, WsfParseRule::cLINE_STRING, WsfParseRule::cLITERAL, WsfParseRule::cQUOTED_STRING, WsfParseRule::cREAL, WsfParseRule::cRECURRENCE, WsfParseRule::cSEQUENCE, WsfParseRule::cSTRING, mAlternates, WsfParseLiteral::mCaseSensitive, ReaderStartsWithChar(), WsfParseSequence::Sequence(), WsfParseRule::Type(), WsfParseAlternate(), and WsfParseRule::WsfParseRule().
Referenced by Initialize(), and ReaderStartsWithChar().
|
overridevirtual |
Override to parse and generate a parse node given a single block of text. This method must be implemented to take part in delimited expressions.
Reimplemented from WsfParseRule.
References mAlternates, and ReadRange().
Referenced by ReadRange().
|
inline |
References mAlternates, std::swap(), and WsfParseAlternate().
Referenced by std::swap().
|
protected |
Referenced by ClearAccelerators(), Initialize(), Read(), and WsfParseAlternate().
|
protected |
Referenced by AddAlternate(), Alternates(), Alternates(), ChangeAlternates(), GetAlternates(), GetReaders(), GetRuleDescription(), Initialize(), Read(), ReaderStartsWithChar(), ReadRange(), and Swap().
|
protected |
Referenced by WsfParseAlternate().
|
protected |
Referenced by Initialize(), Read(), and WsfParseAlternate().