LiteralActionclassaction.t[5257], en_us.t[8985]

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)


Subclass Tree  


Global Objects  


Summary of Properties  

predicateNounPhrases  verbPhrase 

Inherited from LiteralActionBase :

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 :

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 



we have a literal phrase as our only noun phrase

provide a base verbPhrase, in case an instance leaves it out


getQuestionInf (which)OVERRIDDENen_us.t[9002]

handle this as though the literal were a direct object phrase

getVerbPhrase (inf, ctx)OVERRIDDENen_us.t[8996]
use the same processing as TAction

resolveNouns (issuingActor, targetActor, results)OVERRIDDENaction.t[5262]
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)OVERRIDDENen_us.t[8990]
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