Class List Method List File List

# Class: VertxShell::CliToken

Inherits:
  Object
  - Object
  - VertxShell::CliToken
  show all
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/cli_token.rb

## Class Method Summary (collapse)

- + (Object) create_blank(blank = nil)
- + (Object) create_text(text = nil)
- + (Object) tokenize(s = nil)

## Instance Method Summary (collapse)

- - (Boolean) blank?
- - (CliToken) initialize(j_del) constructor
  A new instance of CliToken.
- - (Object) j_del
- - (Object) raw
- - (Boolean) text?
- - (Object) value

## Constructor Details

### - (`CliToken`) initialize(j_del)

Returns a new instance of CliToken

    8
    9
    10
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/cli_token.rb', line 8

    def initialize(j_del)
      @j_del = j_del
    end

## Class Method Details

### + (`Object`) create_blank(blank = nil)

Raises:

- (`ArgumentError`)

    28
    29
    30
    31
    32
    33
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/cli_token.rb', line 28

    def self.create_blank(blank=nil)
      if blank.class == String && !block_given?
        return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtShellCli::CliToken.java_method(:createBlank, [Java::java.lang.String.java_class]).call(blank),::VertxShell::CliToken)
      end
      raise ArgumentError, "Invalid arguments when calling create_blank(blank)"
    end

### + (`Object`) create_text(text = nil)

Raises:

- (`ArgumentError`)

    19
    20
    21
    22
    23
    24
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/cli_token.rb', line 19

    def self.create_text(text=nil)
      if text.class == String && !block_given?
        return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtShellCli::CliToken.java_method(:createText, [Java::java.lang.String.java_class]).call(text),::VertxShell::CliToken)
      end
      raise ArgumentError, "Invalid arguments when calling create_text(text)"
    end

### + (`Object`) tokenize(s = nil)

Raises:

- (`ArgumentError`)

    65
    66
    67
    68
    69
    70
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/cli_token.rb', line 65

    def self.tokenize(s=nil)
      if s.class == String && !block_given?
        return Java::IoVertxExtShellCli::CliToken.java_method(:tokenize, [Java::java.lang.String.java_class]).call(s).to_a.map { |elt| ::Vertx::Util::Utils.safe_create(elt,::VertxShell::CliToken) }
      end
      raise ArgumentError, "Invalid arguments when calling tokenize(s)"
    end

## Instance Method Details

### - (`Boolean`) blank?

Returns:

- (`Boolean`)

Raises:

- (`ArgumentError`)

    56
    57
    58
    59
    60
    61
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/cli_token.rb', line 56

    def blank?
      if !block_given?
        return @j_del.java_method(:isBlank, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling blank?()"
    end

### - (`Object`) j_del

    13
    14
    15
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/cli_token.rb', line 13

    def j_del
      @j_del
    end

### - (`Object`) raw

Raises:

- (`ArgumentError`)

    42
    43
    44
    45
    46
    47
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/cli_token.rb', line 42

    def raw
      if !block_given?
        return @j_del.java_method(:raw, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling raw()"
    end

### - (`Boolean`) text?

Returns:

- (`Boolean`)

Raises:

- (`ArgumentError`)

    49
    50
    51
    52
    53
    54
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/cli_token.rb', line 49

    def text?
      if !block_given?
        return @j_del.java_method(:isText, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling text?()"
    end

### - (`Object`) value

Raises:

- (`ArgumentError`)

    35
    36
    37
    38
    39
    40
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/cli_token.rb', line 35

    def value
      if !block_given?
        return @j_del.java_method(:value, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling value()"
    end