InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ScriptInfo::MethodScriptElement Class Reference

#include <ScriptInfo.h>

Inheritance diagram for ScriptInfo::MethodScriptElement:
ScriptInfo::ScriptElementScriptInfo::BaseScriptInfo

Public Member Functions

 MethodScriptElement (const ScriptElementID &siid, const ScriptID &id, const PMString &name, const PMString &desc, const TypeInfo &type, const PMString &returnDesc)
 
virtual const PMStringGetFormattedName (const RequestContext &context, ScriptElementType as=kMethodElement) const
 
PMString GetFormattedDescription (const ObjectScriptElement *se) const
 
TypeInfo GetReturnType (const ObjectScriptElement *) const
 
PMString GetReturnDescription (const ObjectScriptElement *) const
 
MethodParamList GetParameters (const ObjectScriptElement *) const
 
MethodParamListGetParameters ()
 
const MethodParamFindParameter (const ObjectScriptElement *, const ScriptID &id) const
 
bool16 operator== (const MethodScriptElement &) const
 
virtual void ReadWrite (IPMStream *s)
 
- Public Member Functions inherited from ScriptInfo::ScriptElement
 ScriptElement (const ScriptElementID &siid, const ScriptID &id, const PMString &name, const PMString &desc)
 
const ElementContextGetContext () const
 
const ScriptElementIDGetScriptElementID () const
 
const PluginIDGetPluginID () const
 
const ScriptRecordData & GetMetadata () const
 
ScriptRecordData & GetMetadata ()
 
bool16 HasMetadata (const ScriptID &key, ScriptData &value) const
 
bool16 HasMetadata (const ScriptIDValuePair &kvp) const
 
bool16 operator== (const ScriptElement &) const
 
void SetContext (const ElementContext &context)
 
void SetPluginID (const PluginID &)
 
- Public Member Functions inherited from ScriptInfo::BaseScriptInfo
 BaseScriptInfo (const ScriptID &id, const PMString &name, const PMString &desc)
 
 BaseScriptInfo (const BaseScriptInfo &other)
 
const ScriptIDGetScriptID () const
 
const PMStringGetName () const
 
void SetName (const PMString &name)
 
const PMStringGetFormattedName (const FormatNamePolicy &policy) const
 
virtual PMString GetDescription () const
 
BaseScriptInfooperator= (const BaseScriptInfo &)
 
bool16 operator== (const BaseScriptInfo &) const
 

Additional Inherited Members

- Public Types inherited from ScriptInfo::BaseScriptInfo
typedef object_type data_type
 
- Protected Types inherited from ScriptInfo::BaseScriptInfo
typedef
IDThreading::lock_guard
< IDThreading::spin_mutex
LockGuard
 
- Protected Member Functions inherited from ScriptInfo::BaseScriptInfo
PMString GetFormattedDescription (const ObjectScriptElement *) const
 
- Static Protected Member Functions inherited from ScriptInfo::BaseScriptInfo
static void FormatDescription (PMString &desc, const ObjectScriptElement *)
 
- Protected Attributes inherited from ScriptInfo::BaseScriptInfo
IDThreading::spin_mutex fMutex
 

Detailed Description

MethodScriptElement represents a method in a scripting DOM.

Member Function Documentation

const MethodParam* ScriptInfo::MethodScriptElement::FindParameter (const ObjectScriptElement,
const ScriptIDid 
) const

Get the matching method parameter in the context of the supplied object

PMString ScriptInfo::MethodScriptElement::GetFormattedDescription (const ObjectScriptElementse) const
inline

Get the description in the context of the supplied object

virtual const PMString& ScriptInfo::MethodScriptElement::GetFormattedName (const RequestContextcontext,
ScriptElementType as = kMethodElement 
) const
inlinevirtual

Get the formatted name

Parameters
contextthe request context in which to format the name
aswhich type of script element

Reimplemented from ScriptInfo::BaseScriptInfo.

MethodParamList ScriptInfo::MethodScriptElement::GetParameters (const ObjectScriptElement) const

Get the method's parameters using the supplied object's request context to validate parameter types

MethodParamList& ScriptInfo::MethodScriptElement::GetParameters ()
inline

Get the method's parameters

PMString ScriptInfo::MethodScriptElement::GetReturnDescription (const ObjectScriptElement) const

Get the description in the context of the supplied object

TypeInfo ScriptInfo::MethodScriptElement::GetReturnType (const ObjectScriptElement) const

Get the type in the context of the supplied object

virtual void ScriptInfo::MethodScriptElement::ReadWrite (IPMStreams)
virtual

Persist this object

Reimplemented from ScriptInfo::ScriptElement.