#include <WsfParseTypeLoadRule.hpp>
|
| using | Operation = WsfParseTypeInfoData::Operation |
| 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
} |
|
| | WsfParseTypeLoadRule (WsfParseRuleMemory &aMem, Operation aOperation, bool aAllowReplace=false) |
| bool | Read (WsfParser &aParser, WsfParseNode *&aNode) override |
| void | Undo (WsfParser &aParser) override |
| void | Resolve (WsfParser &aParser, WsfParseNode *aNodePtr) override |
| Operation | GetOperation () const |
| const WsfParseTypeName & | GetSaveType () const |
| const WsfParseTypeName & | GetLoadType () const |
| const WsfParseTypePath & | GetBackupType () const |
| bool | CreateTypePath (WsfParseTypePath &aPath, WsfParser &aParser, WsfParseIndex &aIndex, const WsfParseTypeName &aKey, UtTextDocumentRange &aInputRange) |
| | 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 bool | ReadRange (WsfParser &aParser, UtTextDocumentRange &aRange, WsfParseNode *&aNode, bool aCreateNode) |
| virtual void | Initialize (int aSequence) |
| virtual std::vector< WsfParseRule * > | GetSequence () |
| virtual std::vector< WsfParseRule * > | GetAlternates () |
| virtual WsfParseRuleDictionary * | GetNestedRules () |
| virtual WsfParseNamedRule * | GetContext () const |
| virtual WsfParseRule * | GetPassthrough () |
| virtual std::string | GetRuleDescription () |
| 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) |
◆ Operation
◆ WsfParseTypeLoadRule()
◆ CreateAuxData()
◆ CreateTypePath()
◆ FindLoadType()
◆ GenerateName()
| UtStringRef WsfParseTypeLoadRule::GenerateName |
( |
WsfParser & | aParser, |
|
|
bool | aIsConflict ) |
|
protected |
◆ GetBackupType()
◆ GetLoadType() [1/2]
◆ GetLoadType() [2/2]
◆ GetOperation()
| Operation WsfParseTypeLoadRule::GetOperation |
( |
| ) |
const |
|
inline |
◆ GetSaveType() [1/2]
◆ GetSaveType() [2/2]
| UtStringRef WsfParseTypeLoadRule::GetSaveType |
( |
WsfParser & | aParser | ) |
|
|
protected |
◆ Read()
Override to parse and generate a parse node. Parse nodes should be generated even on error conditions if possible.
- Parameters
-
| aParser | The parser. |
| aNode | Set to the resulting parse node. |
- Returns
- 'true' if a parse node was generated.
Implements WsfParseRule.
References WsfParser::AddAuxiliaryValue(), WsfParseType::AddType(), WsfParseTypeInfoData::cCREATE_TYPE, WsfParseTypeInfoData::cDELETE_TYPE, WsfParseTypeInfoData::cDUPLICATE_NAME, WsfParseNode::cERROR_INCOMPLETE, WsfParseTypeInfoData::cINVALID_TYPE, WsfParseTypeInfoData::cLOAD_TYPE, WsfParseNode::cLOAD_TYPE_NODE, CreateAuxData(), CreateTypePath(), FindLoadType(), WsfParseType::FindType(), WsfParseType::FindTypeLocal(), GenerateName(), WsfParseNode::GetAuxiliaryValue(), WsfParseIndex::GetCurrentType(), WsfParser::GetParseIndex(), WsfParseType::HasSymbols(), WsfParser::IsDelayLoading(), WsfParseIndex::LoadCurrentType(), mAllowRedefinition, mBackupLoadType, WsfParseNode::mFlags, WsfParseTypeInfoData::mFlags, mGenerateNameInConflict, mLoadType, mOperation, mSaveType, WsfParseIndex::mUserTypes, WsfParser::NewNode(), WsfParseType::RemoveType(), WsfParser::Requires(), WsfParseNode::SetAuxiliaryValue(), and WsfParseType::SetSourceType().
◆ Resolve()
◆ SaveTypeToNode()
◆ Undo()
| void WsfParseTypeLoadRule::Undo |
( |
WsfParser & | aParser | ) |
|
|
overridevirtual |
◆ mAllowRedefinition
| bool WsfParseTypeLoadRule::mAllowRedefinition |
◆ mBackupLoadType
◆ mGenerateNameInConflict
| bool WsfParseTypeLoadRule::mGenerateNameInConflict |
◆ mLoadType
◆ mOperation
◆ mSaveType
The documentation for this class was generated from the following files: