Class: Vertx::CommandLine

Inherits:
Object
  • Object
show all
Defined in:
/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb

Class Method Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (CommandLine) initialize(j_del)

Returns a new instance of CommandLine


11
12
13
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 11

def initialize(j_del)
  @j_del = j_del
end

Class Method Details

+ (Object) create(cli = nil)

Raises:

  • (ArgumentError)


23
24
25
26
27
28
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 23

def self.create(cli=nil)
  if cli.class.method_defined?(:j_del) && !block_given?
    return ::Vertx::Util::Utils.safe_create(Java::IoVertxCoreCli::CommandLine.java_method(:create, [Java::IoVertxCoreCli::CLI.java_class]).call(cli.j_del),::Vertx::CommandLine)
  end
  raise ArgumentError, "Invalid arguments when calling create(cli)"
end

Instance Method Details

- (Boolean) accept_more_values?(option = nil)

Returns:

  • (Boolean)

Raises:

  • (ArgumentError)


125
126
127
128
129
130
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 125

def accept_more_values?(option=nil)
  if option.class == Hash && !block_given?
    return @j_del.java_method(:acceptMoreValues, [Java::IoVertxCoreCli::Option.java_class]).call(Java::IoVertxCoreCli::Option.new(::Vertx::Util::Utils.to_json_object(option)))
  end
  raise ArgumentError, "Invalid arguments when calling accept_more_values?(option)"
end

- (Object) all_arguments

Raises:

  • (ArgumentError)


37
38
39
40
41
42
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 37

def all_arguments
  if !block_given?
    return @j_del.java_method(:allArguments, []).call().to_a.map { |elt| elt }
  end
  raise ArgumentError, "Invalid arguments when calling all_arguments()"
end

- (Boolean) argument_assigned?(arg = nil)

Returns:

  • (Boolean)

Raises:

  • (ArgumentError)


143
144
145
146
147
148
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 143

def argument_assigned?(arg=nil)
  if arg.class == Hash && !block_given?
    return @j_del.java_method(:isArgumentAssigned, [Java::IoVertxCoreCli::Argument.java_class]).call(Java::IoVertxCoreCli::Argument.new(::Vertx::Util::Utils.to_json_object(arg)))
  end
  raise ArgumentError, "Invalid arguments when calling argument_assigned?(arg)"
end

- (Boolean) asking_for_help?

Returns:

  • (Boolean)

Raises:

  • (ArgumentError)


169
170
171
172
173
174
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 169

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

- (Object) cli

Raises:

  • (ArgumentError)


30
31
32
33
34
35
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 30

def cli
  if !block_given?
    return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:cli, []).call(),::Vertx::CLI)
  end
  raise ArgumentError, "Invalid arguments when calling cli()"
end

- (Boolean) flag_enabled?(name = nil)

Returns:

  • (Boolean)

Raises:

  • (ArgumentError)


71
72
73
74
75
76
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 71

def flag_enabled?(name=nil)
  if name.class == String && !block_given?
    return @j_del.java_method(:isFlagEnabled, [Java::java.lang.String.java_class]).call(name)
  end
  raise ArgumentError, "Invalid arguments when calling flag_enabled?(name)"
end

- (Object) get_argument_value(param_1 = nil)

Raises:

  • (ArgumentError)


58
59
60
61
62
63
64
65
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 58

def get_argument_value(param_1=nil)
  if param_1.class == String && !block_given?
    return ::Vertx::Util::Utils.from_object(@j_del.java_method(:getArgumentValue, [Java::java.lang.String.java_class]).call(param_1))
  elsif param_1.class == Fixnum && !block_given?
    return ::Vertx::Util::Utils.from_object(@j_del.java_method(:getArgumentValue, [Java::int.java_class]).call(param_1))
  end
  raise ArgumentError, "Invalid arguments when calling get_argument_value(param_1)"
end

- (Object) get_option_value(name = nil)

Raises:

  • (ArgumentError)


46
47
48
49
50
51
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 46

def get_option_value(name=nil)
  if name.class == String && !block_given?
    return ::Vertx::Util::Utils.from_object(@j_del.java_method(:getOptionValue, [Java::java.lang.String.java_class]).call(name))
  end
  raise ArgumentError, "Invalid arguments when calling get_option_value(name)"
end

- (Object) get_raw_value_for_argument(arg = nil)

Raises:

  • (ArgumentError)


134
135
136
137
138
139
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 134

def get_raw_value_for_argument(arg=nil)
  if arg.class == Hash && !block_given?
    return @j_del.java_method(:getRawValueForArgument, [Java::IoVertxCoreCli::Argument.java_class]).call(Java::IoVertxCoreCli::Argument.new(::Vertx::Util::Utils.to_json_object(arg)))
  end
  raise ArgumentError, "Invalid arguments when calling get_raw_value_for_argument(arg)"
end

- (Object) get_raw_value_for_option(option = nil)

Raises:

  • (ArgumentError)


116
117
118
119
120
121
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 116

def get_raw_value_for_option(option=nil)
  if option.class == Hash && !block_given?
    return @j_del.java_method(:getRawValueForOption, [Java::IoVertxCoreCli::Option.java_class]).call(Java::IoVertxCoreCli::Option.new(::Vertx::Util::Utils.to_json_object(option)))
  end
  raise ArgumentError, "Invalid arguments when calling get_raw_value_for_option(option)"
end

- (Object) get_raw_values(option = nil)

Raises:

  • (ArgumentError)


89
90
91
92
93
94
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 89

def get_raw_values(option=nil)
  if option.class == Hash && !block_given?
    return @j_del.java_method(:getRawValues, [Java::IoVertxCoreCli::Option.java_class]).call(Java::IoVertxCoreCli::Option.new(::Vertx::Util::Utils.to_json_object(option))).to_a.map { |elt| elt }
  end
  raise ArgumentError, "Invalid arguments when calling get_raw_values(option)"
end

- (Object) get_raw_values_for_argument(argument = nil)

Raises:

  • (ArgumentError)


107
108
109
110
111
112
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 107

def get_raw_values_for_argument(argument=nil)
  if argument.class == Hash && !block_given?
    return @j_del.java_method(:getRawValuesForArgument, [Java::IoVertxCoreCli::Argument.java_class]).call(Java::IoVertxCoreCli::Argument.new(::Vertx::Util::Utils.to_json_object(argument))).to_a.map { |elt| elt }
  end
  raise ArgumentError, "Invalid arguments when calling get_raw_values_for_argument(argument)"
end

- (Object) get_raw_values_for_option(option = nil)

Raises:

  • (ArgumentError)


98
99
100
101
102
103
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 98

def get_raw_values_for_option(option=nil)
  if option.class == Hash && !block_given?
    return @j_del.java_method(:getRawValuesForOption, [Java::IoVertxCoreCli::Option.java_class]).call(Java::IoVertxCoreCli::Option.new(::Vertx::Util::Utils.to_json_object(option))).to_a.map { |elt| elt }
  end
  raise ArgumentError, "Invalid arguments when calling get_raw_values_for_option(option)"
end

- (Object) j_del



16
17
18
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 16

def j_del
  @j_del
end

- (Boolean) option_assigned?(option = nil)

Returns:

  • (Boolean)

Raises:

  • (ArgumentError)


80
81
82
83
84
85
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 80

def option_assigned?(option=nil)
  if option.class == Hash && !block_given?
    return @j_del.java_method(:isOptionAssigned, [Java::IoVertxCoreCli::Option.java_class]).call(Java::IoVertxCoreCli::Option.new(::Vertx::Util::Utils.to_json_object(option)))
  end
  raise ArgumentError, "Invalid arguments when calling option_assigned?(option)"
end

- (Boolean) seen_in_command_line?(option = nil)

Returns:

  • (Boolean)

Raises:

  • (ArgumentError)


152
153
154
155
156
157
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 152

def seen_in_command_line?(option=nil)
  if option.class == Hash && !block_given?
    return @j_del.java_method(:isSeenInCommandLine, [Java::IoVertxCoreCli::Option.java_class]).call(Java::IoVertxCoreCli::Option.new(::Vertx::Util::Utils.to_json_object(option)))
  end
  raise ArgumentError, "Invalid arguments when calling seen_in_command_line?(option)"
end

- (Boolean) valid?

Returns:

  • (Boolean)

Raises:

  • (ArgumentError)


161
162
163
164
165
166
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/command_line.rb', line 161

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