Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::MethodParameter Class Reference
Inheritance diagram for dart::MethodParameter:
dart::BoolParameter dart::DartListParameter dart::DartStringParameter dart::EnumListParameter dart::EnumParameter dart::IdParameter dart::Int64Parameter dart::NoSuchParameter dart::RunnableIsolateParameter dart::StringParameter dart::UInt64Parameter dart::UIntParameter

Public Member Functions

 MethodParameter (const char *name, bool required)
 
virtual ~MethodParameter ()
 
virtual bool Validate (const char *value) const
 
virtual bool ValidateObject (const Object &value) const
 
const char * name () const
 
bool required () const
 
virtual void PrintError (const char *name, const char *value, JSONStream *js) const
 
virtual void PrintErrorObject (const char *name, const Object &value, JSONStream *js) const
 

Detailed Description

Definition at line 136 of file service.cc.

Constructor & Destructor Documentation

◆ MethodParameter()

dart::MethodParameter::MethodParameter ( const char *  name,
bool  required 
)
inline

Definition at line 138 of file service.cc.

139 : name_(name), required_(required) {}
const char * name() const
Definition: service.cc:147
bool required() const
Definition: service.cc:149

◆ ~MethodParameter()

virtual dart::MethodParameter::~MethodParameter ( )
inlinevirtual

Definition at line 141 of file service.cc.

141{}

Member Function Documentation

◆ name()

const char * dart::MethodParameter::name ( ) const
inline

Definition at line 147 of file service.cc.

147{ return name_; }

◆ PrintError()

virtual void dart::MethodParameter::PrintError ( const char *  name,
const char *  value,
JSONStream js 
) const
inlinevirtual

Reimplemented in dart::RunnableIsolateParameter.

Definition at line 151 of file service.cc.

153 {
155 }
static void PrintInvalidParamError(JSONStream *js, const char *param)
Definition: service.cc:128

◆ PrintErrorObject()

virtual void dart::MethodParameter::PrintErrorObject ( const char *  name,
const Object value,
JSONStream js 
) const
inlinevirtual

Definition at line 157 of file service.cc.

159 {
161 }

◆ required()

bool dart::MethodParameter::required ( ) const
inline

Definition at line 149 of file service.cc.

149{ return required_; }

◆ Validate()

virtual bool dart::MethodParameter::Validate ( const char *  value) const
inlinevirtual

◆ ValidateObject()

virtual bool dart::MethodParameter::ValidateObject ( const Object value) const
inlinevirtual

Reimplemented in dart::NoSuchParameter, dart::DartStringParameter, and dart::DartListParameter.

Definition at line 145 of file service.cc.

145{ return true; }

The documentation for this class was generated from the following file: