Record Class CommandOpts
java.lang.Object
java.lang.Record
com.ensarsarajcic.neovim.java.pluginhost.opts.CommandOpts
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddr()Returns the value of theaddrrecord component.booleanbang()Returns the value of thebangrecord component.booleanbar()Returns the value of thebarrecord component.complete()Returns the value of thecompleterecord component.count()Returns the value of thecountrecord component.Returns the value of thedescriptionrecord component.booleanReturns the value of theenableRangerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanforce()Returns the value of theforcerecord component.static CommandOptsfromAnnotation(NeovimCommand command) final inthashCode()Returns a hash code value for this object.booleanReturns the value of thekeepScriptrecord component.nargs()Returns the value of thenargsrecord component.range()Returns the value of therangerecord component.booleanregister()Returns the value of theregisterrecord component.booleansync()Returns the value of thesyncrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CommandOpts
public CommandOpts(String nargs, String complete, String description, boolean enableRange, String range, String count, String addr, boolean force, boolean bang, boolean bar, boolean register, boolean keepScript, boolean sync) Creates an instance of aCommandOptsrecord class.- Parameters:
nargs- the value for thenargsrecord componentcomplete- the value for thecompleterecord componentdescription- the value for thedescriptionrecord componentenableRange- the value for theenableRangerecord componentrange- the value for therangerecord componentcount- the value for thecountrecord componentaddr- the value for theaddrrecord componentforce- the value for theforcerecord componentbang- the value for thebangrecord componentbar- the value for thebarrecord componentregister- the value for theregisterrecord componentkeepScript- the value for thekeepScriptrecord componentsync- the value for thesyncrecord component
-
-
Method Details
-
fromAnnotation
-
toNeovimOptions
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
nargs
Returns the value of thenargsrecord component.- Returns:
- the value of the
nargsrecord component
-
complete
Returns the value of thecompleterecord component.- Returns:
- the value of the
completerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
enableRange
public boolean enableRange()Returns the value of theenableRangerecord component.- Returns:
- the value of the
enableRangerecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
count
Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
addr
Returns the value of theaddrrecord component.- Returns:
- the value of the
addrrecord component
-
force
public boolean force()Returns the value of theforcerecord component.- Returns:
- the value of the
forcerecord component
-
bang
public boolean bang()Returns the value of thebangrecord component.- Returns:
- the value of the
bangrecord component
-
bar
public boolean bar()Returns the value of thebarrecord component.- Returns:
- the value of the
barrecord component
-
register
public boolean register()Returns the value of theregisterrecord component.- Returns:
- the value of the
registerrecord component
-
keepScript
public boolean keepScript()Returns the value of thekeepScriptrecord component.- Returns:
- the value of the
keepScriptrecord component
-
sync
public boolean sync()Returns the value of thesyncrecord component.- Returns:
- the value of the
syncrecord component
-