Package org.cytoscape.equations
Class ArgDescriptor
java.lang.Object
org.cytoscape.equations.ArgDescriptor
A class describing a function argument.
Cytoscape Backwards Compatibility (Final Class): This class is final and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
Module: equations-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>equations-api</artifactId> </dependency>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if this ArgDescriptor accepts multiple arguments, otherwise false.Returns the name of the argument.Class[]
Returns the types that are compatible with this argument.Returns the description of the argument.boolean
isCompatibleList
(Class listElementType) Returns true if "listType", which must be some type of List is a type compatible with this argument descriptor.boolean
isCompatibleWith
(Class type) Tests to see if the specified class is compatible with this ArgType.boolean
Returns whether the ArgType is optional.
-
Constructor Details
-
ArgDescriptor
- Parameters:
argType
- The type of the argument.argName
- The name of the argument.description
- The description of the argument.
-
-
Method Details
-
getArgType
- Returns:
- The type of the argument.
-
getArgName
Returns the name of the argument.- Returns:
- The name of the argument.
-
getDescription
Returns the description of the argument.- Returns:
- The description of the argument.
-
isOptional
public boolean isOptional()Returns whether the ArgType is optional.- Returns:
- whether the ArgType is optional.
-
isCompatibleWith
Tests to see if the specified class is compatible with this ArgType.- Parameters:
type
- the Class to test against this ArgType.- Returns:
- true if the specified class is compatible with this ArgType.
-
isCompatibleList
Returns true if "listType", which must be some type of List is a type compatible with this argument descriptor.- Parameters:
listType
- A type that is a subclass of List.- Returns:
- true if "listType", which must be some type of List is a type compatible with this argument descriptor.
-
getCompatibleTypes
Returns the types that are compatible with this argument.- Returns:
- the types that are compatible with this argument.
-
acceptsMultipleArgs
public boolean acceptsMultipleArgs()Returns true if this ArgDescriptor accepts multiple arguments, otherwise false.- Returns:
- true if this ArgDescriptor accepts multiple arguments, otherwise false.
-