Class LiteralsPrinterSwitch


public class LiteralsPrinterSwitch extends LiteralsSwitch<Boolean>
  • Method Details

    • caseBooleanLiteral

      public Boolean caseBooleanLiteral(BooleanLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Boolean Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseBooleanLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Boolean Literal'.
      See Also:
    • caseCharacterLiteral

      public Boolean caseCharacterLiteral(CharacterLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Character Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseCharacterLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Character Literal'.
      See Also:
    • caseNullLiteral

      public Boolean caseNullLiteral(NullLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Null Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseNullLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Null Literal'.
      See Also:
    • caseDecimalFloatLiteral

      public Boolean caseDecimalFloatLiteral(DecimalFloatLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Decimal Float Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseDecimalFloatLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Decimal Float Literal'.
      See Also:
    • caseHexFloatLiteral

      public Boolean caseHexFloatLiteral(HexFloatLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Hex Float Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseHexFloatLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Hex Float Literal'.
      See Also:
    • caseDecimalDoubleLiteral

      public Boolean caseDecimalDoubleLiteral(DecimalDoubleLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Decimal Double Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseDecimalDoubleLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Decimal Double Literal'.
      See Also:
    • caseHexDoubleLiteral

      public Boolean caseHexDoubleLiteral(HexDoubleLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Hex Double Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseHexDoubleLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Hex Double Literal'.
      See Also:
    • caseDecimalIntegerLiteral

      public Boolean caseDecimalIntegerLiteral(DecimalIntegerLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Decimal Integer Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseDecimalIntegerLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Decimal Integer Literal'.
      See Also:
    • caseHexIntegerLiteral

      public Boolean caseHexIntegerLiteral(HexIntegerLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Hex Integer Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseHexIntegerLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Hex Integer Literal'.
      See Also:
    • caseOctalIntegerLiteral

      public Boolean caseOctalIntegerLiteral(OctalIntegerLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Octal Integer Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseOctalIntegerLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Octal Integer Literal'.
      See Also:
    • caseBinaryIntegerLiteral

      public Boolean caseBinaryIntegerLiteral(BinaryIntegerLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Binary Integer Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseBinaryIntegerLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Binary Integer Literal'.
      See Also:
    • caseDecimalLongLiteral

      public Boolean caseDecimalLongLiteral(DecimalLongLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Decimal Long Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseDecimalLongLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Decimal Long Literal'.
      See Also:
    • caseHexLongLiteral

      public Boolean caseHexLongLiteral(HexLongLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Hex Long Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseHexLongLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Hex Long Literal'.
      See Also:
    • caseOctalLongLiteral

      public Boolean caseOctalLongLiteral(OctalLongLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Octal Long Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseOctalLongLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Octal Long Literal'.
      See Also:
    • caseBinaryLongLiteral

      public Boolean caseBinaryLongLiteral(BinaryLongLiteral element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Binary Long Literal'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseBinaryLongLiteral in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Binary Long Literal'.
      See Also:
    • caseThis

      public Boolean caseThis(This element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'This'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseThis in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'This'.
      See Also:
    • caseSuper

      public Boolean caseSuper(Super element)
      Description copied from class: LiteralsSwitch
      Returns the result of interpreting the object as an instance of 'Super'. This implementation returns null; returning a non-null result will terminate the switch.
      Overrides:
      caseSuper in class LiteralsSwitch<Boolean>
      Parameters:
      element - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Super'.
      See Also: