Package ghidra.debug.api.tracermi
Record Class LaunchParameter<T>
java.lang.Object
java.lang.Record
ghidra.debug.api.tracermi.LaunchParameter<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchoices()Returns the value of thechoicesrecord component.static <T> LaunchParameter<T> choices(Class<T> type, String name, String display, String description, Collection<T> choices, ValStr<T> defaultValue) static <T> LaunchParameter<T> create(Class<T> type, String name, String display, String description, boolean required, ValStr<T> defaultValue, ValStr.Decoder<T> decoder) decoder()Returns the value of thedecoderrecord component.Returns the value of thedefaultValuerecord component.Returns the value of thedescriptionrecord component.display()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static Map<String, LaunchParameter<?>> mapOf(LaunchParameter<?>... parameters) static Map<String, LaunchParameter<?>> mapOf(Collection<LaunchParameter<?>> parameters) name()Returns the value of thenamerecord component.booleanrequired()Returns the value of therequiredrecord component.voidfinal StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.validateArguments(Map<String, LaunchParameter<?>> parameters, Map<String, ValStr<?>> arguments)
-
Constructor Details
-
LaunchParameter
public LaunchParameter(Class<T> type, String name, String display, String description, boolean required, List<T> choices, ValStr<T> defaultValue, ValStr.Decoder<T> decoder) Creates an instance of aLaunchParameterrecord class.- Parameters:
type- the value for thetyperecord componentname- the value for thenamerecord componentdisplay- the value for thedisplayrecord componentdescription- the value for thedescriptionrecord componentrequired- the value for therequiredrecord componentchoices- the value for thechoicesrecord componentdefaultValue- the value for thedefaultValuerecord componentdecoder- the value for thedecoderrecord component
-
-
Method Details
-
create
public static <T> LaunchParameter<T> create(Class<T> type, String name, String display, String description, boolean required, ValStr<T> defaultValue, ValStr.Decoder<T> decoder) -
choices
public static <T> LaunchParameter<T> choices(Class<T> type, String name, String display, String description, Collection<T> choices, ValStr<T> defaultValue) -
mapOf
-
validateArguments
-
mapOf
-
decode
-
get
-
set
-
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
choices
Returns the value of thechoicesrecord component.- Returns:
- the value of the
choicesrecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
decoder
Returns the value of thedecoderrecord component.- Returns:
- the value of the
decoderrecord component
-