Class RefArg.Signature<T extends Identified & Named>
java.lang.Object
org.qubership.atp.dataset.macros.args.RefArg<T>
org.qubership.atp.dataset.macros.args.RefArg.Signature<T>
- All Implemented Interfaces:
Supplier<T>,MacroArg,SignatureArg
- Enclosing class:
RefArg<T extends Named & Identified>
public static class RefArg.Signature<T extends Identified & Named>
extends RefArg<T>
implements Supplier<T>, SignatureArg
It is a reference, represented as some name/id in macros arguments signature.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.qubership.atp.dataset.macros.args.RefArg
RefArg.Context<T extends Identified & Named>, RefArg.Signature<T extends Identified & Named> -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionasAttr()Returns arg of a attr if it is an attr arg.asDs()Returns arg of a ds if it is a ds arg.asDsl()Returns arg of a dsl if it is a dsl arg.asRef()booleaninthashCode()resolve(List<? extends MacroArg> previousArgs, VisibilityArea contextVa, DataSetList contextDsl) Resolves and memorizes an actual value of an arg.toString()Methods inherited from class org.qubership.atp.dataset.macros.args.RefArg
asContextRef, get, getText, getType, isResolved, of, of, of, resolve, setText
-
Method Details
-
asSignature
- Specified by:
asSignaturein interfaceMacroArg- Overrides:
asSignaturein classRefArg<T extends Identified & Named>
-
resolve
@Nonnull public T resolve(@Nonnull List<? extends MacroArg> previousArgs, @Nonnull VisibilityArea contextVa, @Nonnull DataSetList contextDsl) throws Exception Resolves and memorizes an actual value of an arg.- Throws:
Exception
-
toString
- Overrides:
toStringin classRefArg<T extends Identified & Named>
-
equals
-
hashCode
public int hashCode() -
asRef
- Specified by:
asRefin interfaceMacroArg- Specified by:
asRefin interfaceSignatureArg
-
getSignature
- Specified by:
getSignaturein interfaceSignatureArg
-
asDsl
Description copied from class:RefArgReturns arg of a dsl if it is a dsl arg. Or empty. Safe way to make a cast.- Overrides:
asDslin classRefArg<T extends Identified & Named>
-
asDs
Description copied from class:RefArgReturns arg of a ds if it is a ds arg. Or empty. Safe way to make a cast.- Overrides:
asDsin classRefArg<T extends Identified & Named>
-
asAttr
Description copied from class:RefArgReturns arg of a attr if it is an attr arg. Or empty. Safe way to make a cast.- Overrides:
asAttrin classRefArg<T extends Identified & Named>
-