Class: BELParser::Language::Semantics::SemanticsWarning
- Inherits:
-
SemanticsResult
- Object
- SemanticsResult
- BELParser::Language::Semantics::SemanticsWarning
- Defined in:
- lib/bel_parser/language/semantics_warning.rb
Overview
SemanticsWarning defines a SemanticsResult that should be regarded as a warning with the expression.
Direct Known Subclasses
DeeplyNestedStatementWarning, FunctionDeprecationWarning, ListFunctionSubjectWarning, MultipleSubjectObjectWarning, NestedStatementWithoutObjectWarning, NonCausalNestedStatementWarning, NonObjectListWarning, RelationshipDeprecationWarning, RelationshipNotMultipleWarning, SemanticsArgumentLengthWarning, SemanticsInvalidAminoAcidRangeWarning, SemanticsInvalidAminoAcidWarning, SemanticsInvalidEncodingWarning, SemanticsInvalidFunctionWarning, SemanticsInvalidNamespaceWarning, SemanticsInvalidProteinModificationWarning, SemanticsInvalidReturnTypeWarning, SemanticsInvalidSequencePositionWarning, SemanticsMissingEncodingWarning, SemanticsMissingNamespaceWarning, SemanticsNilNodeWarning, SemanticsNotNilNodeWarning, SemanticsTypeWarning, SignatureMappingWarning
Instance Attribute Summary
Attributes inherited from SemanticsResult
#expression_node, #specification
Instance Method Summary collapse
- #failure? ⇒ Boolean
-
#initialize(expression_node, specification) ⇒ SemanticsWarning
constructor
A new instance of SemanticsWarning.
- #success? ⇒ Boolean
- #to_s ⇒ Object
Methods inherited from SemanticsResult
Constructor Details
#initialize(expression_node, specification) ⇒ SemanticsWarning
Returns a new instance of SemanticsWarning.
9 10 11 |
# File 'lib/bel_parser/language/semantics_warning.rb', line 9 def initialize(expression_node, specification) super(expression_node, specification) end |
Instance Method Details
#failure? ⇒ Boolean
17 18 19 |
# File 'lib/bel_parser/language/semantics_warning.rb', line 17 def failure? true end |
#success? ⇒ Boolean
13 14 15 |
# File 'lib/bel_parser/language/semantics_warning.rb', line 13 def success? false end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/bel_parser/language/semantics_warning.rb', line 21 def to_s "Warning: #{msg}" end |