LiteralActionclass
An action with a literal phrase as its only object, such as “say <any text>”. We’ll accept anything as the literal phrase - a number, a quoted string, or arbitrary words - and treat them all simply as text.
The grammar rules that produce these actions must set literalMatch to the literal phrase’s match tree.
Because we don’t have any actual resolved objects, we’re based on IAction. Subclasses that implement particular literal actions should override execAction() to carry out the action; this method can call the getLiteral() method of self to get a string giving the literal text.
Modified in
en_us.t[8985]:
English-specific additions for verbs taking a literal phrase as the sole
object.
class
LiteralAction
:
LiteralActionBase
IAction
Superclass Tree (in declaration order)
LiteralAction
LiteralActionBase
` object
[
IAction](../object/IAction.html)
[
Action](../object/Action.html)
[
BasicProd](../object/BasicProd.html)
object`
Subclass Tree
LiteralAction
OopsAction
predicate(Oops)
SpecialTopicAction
predicate(SpecialTopic)
Global Objects
(none)
Summary of Properties
predicateNounPhrases
verbPhrase
Inherited from LiteralActionBase
:
text_
Inherited from Action
:
actionTime
afterActionMainList
beforeAfterObjs
defaultForRecursion
extraMessageParams
implicitMsg
includeInUndo
isImplicit
isRepeatable
iterationCanceled
originalAction
parentAction
preCond
pronounOverride
remappedFrom
showDefaultReports
synthParamID
verbFlags
verifiedOkay
Inherited from BasicProd
:
firstTokenIndex
isSpecialResponseMatch
lastTokenIndex
Summary of Methods
getQuestionInf
getVerbPhrase
resolveNouns
whatObj
Inherited from LiteralActionBase
:
getLiteral
getMessageParam
setObjectMatches
setResolvedObjects
Inherited from IAction
:
doActionMain
Inherited from Action
:
actionOfKind
addBeforeAfterObj
afterAction
afterActionMain
announceActionObject
announceAllDefaultObjects
announceDefaultObject
beforeAction
beforeActionMain
cacheMultiObjectAnnouncements
callAfterActionMain
callCatchAllProp
callPreConditions
callVerifyPreCond
callVerifyProp
cancelIteration
checkAction
checkPreConditions
checkRemapping
combineRemappedVerifyResults
createActionFrom
createActionInstance
createTopicQualifierResolver
doAction
doActionOnce
execAction
filterAmbiguousWithVerify
filterFacets
filterPluralWithVerify
finishResolveList
getAnaphoricBinding
getCurrentObjects
getDefaultWithVerify
getEnteredVerbPhrase
getImplicitPhrase
getInfPhrase
getMatchForRole
getNotifyTable
getObjectForRole
getObjPreCondDescList
getObjPreConditions
getObjResponseProd
getOriginalAction
getOrigTokenList
getOtherObjectRole
getParticiplePhrase
getPreCondDescList
getPreCondPropForRole
getPredicate
getPronounOverride
getRemappedFrom
getRemapPropForRole
getResolvedObjList
getResolveInfo
getRoleFromIndex
getSimpleSynonymRemap
getSortedVerifyResults
getVerifyPropForRole
initTentative
isConversational
isNestedIn
isPartOf
isRemapped
makeResolveInfo
makeResolveInfoList
maybeAnnounceDefaultObject
maybeAnnounceImplicit
maybeAnnounceMultiObject
noMatch
notifyBeforeAfter
objListPronoun
preAnnounceActionObject
recalcSenseContext
repeatAction
resetAction
resolveAction
resolvedObjectsInScope
runBeforeNotifiers
saveActionForAgain
setCurrentObjects
setImplicit
setMessageParam
setMessageParams
setNested
setOriginalAction
setPronounOverride
setRemapped
spPrefix
spSuffix
synthMessageParam
verifyAction
verifyHandlersExist
whatTranslate
withVerifyResults
zeroActionTime
Inherited from BasicProd
:
canResolveTo
getOrigText
setOrigTokenList
Properties
predicateNounPhrases
OVERRIDDEN
we have a literal phrase as our only noun phrase
verbPhrase
provide a base verbPhrase, in case an instance leaves it out
Methods
getQuestionInf (which)
OVERRIDDEN
handle this as though the literal were a direct object phrase
getVerbPhrase (inf, ctx)
OVERRIDDEN
use the same processing as TAction
resolveNouns (issuingActor, targetActor, results)
OVERRIDDEN
Resolve objects. We don’t actually have any objects to resolve, but we do have to get the text for the literal phrase.
whatObj (which)
OVERRIDDEN
get an interrogative word for an object of the action
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3