Class Shortcut.Argument
- java.lang.Object
-
- ru.ispras.microtesk.translator.nml.ir.primitive.Shortcut.Argument
-
- Enclosing class:
- Shortcut
public static final class Shortcut.Argument extends java.lang.Object
The Argument class describes shortcut arguments (arguments of a composite operation).
-
-
Constructor Summary
Constructors Constructor Description Argument(java.lang.String uniqueName, Primitive type, java.lang.String name, PrimitiveAnd source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Returns the argument name as it is defined in the signature of the operation it will be actually passed to.PrimitiveAnd
getSource()
Returns the operation on the shortcut path the argument is actually passed to.Primitive
getType()
Returns the primitive describing the argument type.java.lang.String
getUniqueName()
Returns a name the uniquely identifies the given argument in the set of shortcut arguments.java.lang.String
toString()
-
-
-
Constructor Detail
-
Argument
public Argument(java.lang.String uniqueName, Primitive type, java.lang.String name, PrimitiveAnd source)
-
-
Method Detail
-
getUniqueName
public java.lang.String getUniqueName()
Returns a name the uniquely identifies the given argument in the set of shortcut arguments.- Returns:
- Unique argument name.
-
getType
public Primitive getType()
Returns the primitive describing the argument type.- Returns:
- Argument type.
-
getName
public java.lang.String getName()
Returns the argument name as it is defined in the signature of the operation it will be actually passed to.- Returns:
- Argument name from the source operation signature.
-
getSource
public PrimitiveAnd getSource()
Returns the operation on the shortcut path the argument is actually passed to.- Returns:
- Source operation.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-