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

Public Member Functions

 RunnableIsolateParameter (const char *name)
 
virtual bool Validate (const char *value) const
 
virtual void PrintError (const char *name, const char *value, JSONStream *js) 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 822 of file service.cc.

Constructor & Destructor Documentation

◆ RunnableIsolateParameter()

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

Definition at line 824 of file service.cc.

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

Member Function Documentation

◆ PrintError()

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

Reimplemented from dart::MethodParameter.

Definition at line 833 of file service.cc.

835 {
836 js->PrintError(kIsolateMustBeRunnable,
837 "Isolate must be runnable before this request is made.");
838 }
@ kIsolateMustBeRunnable
Definition: json_stream.h:57

◆ Validate()

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

Reimplemented from dart::MethodParameter.

Definition at line 827 of file service.cc.

827 {
828 Isolate* isolate = Isolate::Current();
829 return (value != nullptr) && (isolate != nullptr) &&
830 (isolate->is_runnable());
831 }
static Isolate * Current()
Definition: isolate.h:986
uint8_t value

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