Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::NoSuchParameter Class Reference
Inheritance diagram for dart::NoSuchParameter:
dart::MethodParameter

Public Member Functions

 NoSuchParameter (const char *name)
 
virtual bool Validate (const char *value) const
 
virtual bool ValidateObject (const Object &value) const
 
- Public Member Functions inherited from dart::MethodParameter
 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 168 of file service.cc.

Constructor & Destructor Documentation

◆ NoSuchParameter()

dart::NoSuchParameter::NoSuchParameter ( const char *  name)
inlineexplicit

Definition at line 170 of file service.cc.

170: MethodParameter(name, false) {}
const char * name() const
Definition: service.cc:147
MethodParameter(const char *name, bool required)
Definition: service.cc:138

Member Function Documentation

◆ Validate()

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

Reimplemented from dart::MethodParameter.

Definition at line 172 of file service.cc.

172{ return (value == nullptr); }
uint8_t value

◆ ValidateObject()

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

Reimplemented from dart::MethodParameter.

Definition at line 174 of file service.cc.

174 {
175 return value.IsNull();
176 }

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