Command Warning

Command warnings are returned when the command cannot provide results because of a problem on the model-end (i.e. No documentation for a MEntity, no code etc.)

Introduced properties

Redefined properties

redef type SELF: CmdWarning

nitc $ CmdWarning :: SELF

Type of this instance, automatically specialized in every class
redef fun http_status_code: Int

nitc :: commands_http $ CmdWarning :: http_status_code

HTTP code to return for this message
redef fun http_status_code=(http_status_code: Int)

nitc :: commands_http $ CmdWarning :: http_status_code=

HTTP code to return for this message
redef fun print_message(no_color: nullable Bool)

nitc :: term $ CmdWarning :: print_message

redef fun to_html: Writable

nitc :: html_commands $ CmdWarning :: to_html

Render the message as a HTML string
redef fun to_md: Writable

nitc :: md_commands $ CmdWarning :: to_md

Render the message as a HTML string

All properties

fun !=(other: nullable Object): Bool

core :: Object :: !=

Have self and other different values?
fun ==(other: nullable Object): Bool

core :: Object :: ==

Have self and other the same value?
type CLASS: Class[SELF]

core :: Object :: CLASS

The type of the class of self.
type SELF: Object

core :: Object :: SELF

Type of this instance, automatically specialized in every class
private var _http_status_code: Int

nitc :: CmdMessage :: _http_status_code

HTTP code to return for this message
protected fun class_factory(name: String): CLASS

core :: Object :: class_factory

Implementation used by get_class to create the specific class.
fun class_name: String

core :: Object :: class_name

The class name of the object.
fun get_class: CLASS

core :: Object :: get_class

The meta-object representing the dynamic type of self.
fun hash: Int

core :: Object :: hash

The hash code of the object.
fun http_status_code: Int

nitc :: CmdMessage :: http_status_code

HTTP code to return for this message
protected fun http_status_code=(http_status_code: Int)

nitc :: CmdMessage :: http_status_code=

HTTP code to return for this message
init init

core :: Object :: init

fun inspect: String

core :: Object :: inspect

Developer readable representation of self.
protected fun inspect_head: String

core :: Object :: inspect_head

Return "CLASSNAME:#OBJECTID".
intern fun is_same_instance(other: nullable Object): Bool

core :: Object :: is_same_instance

Return true if self and other are the same instance (i.e. same identity).
fun is_same_serialized(other: nullable Object): Bool

core :: Object :: is_same_serialized

Is self the same as other in a serialization context?
intern fun is_same_type(other: Object): Bool

core :: Object :: is_same_type

Return true if self and other have the same dynamic type.
private intern fun native_class_name: CString

core :: Object :: native_class_name

The class name of the object in CString format.
intern fun object_id: Int

core :: Object :: object_id

An internal hash code for the object based on its identity.
fun output

core :: Object :: output

Display self on stdout (debug only).
intern fun output_class_name

core :: Object :: output_class_name

Display class name on stdout (debug only).
fun print_message(no_color: nullable Bool)

nitc :: CmdMessage :: print_message

fun serialization_hash: Int

core :: Object :: serialization_hash

Hash value use for serialization
intern fun sys: Sys

core :: Object :: sys

Return the global sys object, the only instance of the Sys class.
abstract fun to_html: Writable

nitc :: CmdMessage :: to_html

Render the message as a HTML string
fun to_json: nullable Serializable

nitc :: CmdMessage :: to_json

Return a JSON Serializable representation of self
abstract fun to_jvalue(env: JniEnv): JValue

core :: Object :: to_jvalue

abstract fun to_md: Writable

nitc :: CmdMessage :: to_md

Render the message as a HTML string
fun to_s: String

core :: Object :: to_s

User readable representation of self.
package_diagram nitc::CmdWarning CmdWarning nitc::CmdMessage CmdMessage nitc::CmdWarning->nitc::CmdMessage core::Object Object nitc::CmdMessage->core::Object ...core::Object ... ...core::Object->core::Object nitc::CmdWarning... ... nitc::CmdWarning...->nitc::CmdWarning

Ancestors

interface Object

core :: Object

The root of the class hierarchy.

Parents

abstract class CmdMessage

nitc :: CmdMessage

Command message

Children

class WarningNoCode

nitc :: WarningNoCode

No code for mentity
class WarningNoContribFile

nitc :: WarningNoContribFile

No license file for mentity
class WarningNoContributor

nitc :: WarningNoContributor

No contributor for mentity
class WarningNoDescription

nitc :: WarningNoDescription

No git clone url for mentity
class WarningNoFeatures

nitc :: WarningNoFeatures

No feature list for mentity
class WarningNoGitUrl

nitc :: WarningNoGitUrl

No git url for mentity
class WarningNoIni

nitc :: WarningNoIni

No ini file for mentity
class WarningNoIssuesUrl

nitc :: WarningNoIssuesUrl

No issues url for mentity
class WarningNoLicense

nitc :: WarningNoLicense

No ini license string for mentity
class WarningNoLicenseFile

nitc :: WarningNoLicenseFile

No license file for mentity
class WarningNoLinearization

nitc :: WarningNoLinearization

No linearization computed for mentity.
class WarningNoMDoc

nitc :: WarningNoMDoc

No MDoc for mentity
class WarningNoMain

nitc :: WarningNoMain

No tests for mentity
class WarningNoMains

nitc :: WarningNoMains

No tests for mentity
class WarningNoMaintainer

nitc :: WarningNoMaintainer

No maintainer for mentity
class WarningNoManFile

nitc :: WarningNoManFile

No man file for mentity
class WarningNoManOptions

nitc :: WarningNoManOptions

No options description found in the man file for mentity
class WarningNoManSynopsis

nitc :: WarningNoManSynopsis

No synopsis found in the man file for mentity
class WarningNoMetadata

nitc :: WarningNoMetadata

No metadata for mentity
class WarningNoTest

nitc :: WarningNoTest

No tests for mentity
class WarningNoUML

nitc :: WarningNoUML

No UML model for mentity

Class definitions

nitc $ CmdWarning
# Command Warning
#
# Command warnings are returned when the command cannot provide results because
# of a problem on the model-end (i.e. No documentation for a MEntity, no code etc.)
abstract class CmdWarning
	super CmdMessage
end
src/doc/commands/commands_base.nit:104,1--110,3

nitc :: commands_http $ CmdWarning
redef class CmdWarning
	redef var http_status_code = 404
end
src/doc/commands/commands_http.nit:91,1--93,3

nitc :: md_commands $ CmdWarning
redef class CmdWarning
	redef fun to_md do return "**Warning: {to_s}**"
end
src/doc/templates/md_commands.nit:42,1--44,3

nitc :: term $ CmdWarning
redef class CmdWarning
	redef fun print_message(no_color) do
		var res = "Warning: {to_s}"
		if no_color == null or not no_color then res = res.bold.yellow
		print res
	end
end
src/doc/term/term.nit:60,1--66,3

nitc :: html_commands $ CmdWarning
redef class CmdWarning
	redef fun to_html do return "<p class='text-warning'>Warning: {to_s}</p>"
end
src/doc/templates/html_commands.nit:45,1--47,3