public interface IArgument
Represents a single function argument signature.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classUsed to create an argument's signature using a builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionstatic IArgument.Builderbuilder()Get a new argument builder.getName()Get the argument's name.Get information about the type of sequence supported by the argument.static IArgumentof(IEnhancedQName name, ISequenceType sequenceType) Create a new argument with the provided name and sequence type.static StringresolveArgumentName(String prefix) Resolve an argument name from a prefix.Get the signature of the argument.
-
Method Details
-
of
Create a new argument with the provided name and sequence type.- Parameters:
name- the argument's namesequenceType- the argument's sequence type- Returns:
- a new argument instance
-
getName
Get the argument's name.- Returns:
- the argument's name
-
getSequenceType
Get information about the type of sequence supported by the argument.- Returns:
- the sequence information
-
toSignature
Get the signature of the argument.- Returns:
- the argument's signature
-
builder
Get a new argument builder.- Returns:
- the new argument builder
-
resolveArgumentName
Resolve an argument name from a prefix.- Parameters:
prefix- the prefix to resolve- Returns:
- the resolved argument name
- Throws:
UnsupportedOperationException- if a non-empty prefix is provided
-