Skip to content

ResolveOptions

Options to the resolve() operation.

NOT the same as the ResolveContext; ResolveContext is exposed to Token implementors and resolution hooks, whereas this struct is just to bundle a number of things that would otherwise be arguments to resolve() in a readable way.

Initializer

import com.aliyun.ros.cdk.core.ResolveOptions;
ResolveOptions.builder()
    .resolver(ITokenResolver)
    .scope(IConstruct)
//  .preparing(java.lang.Boolean)
    .build();

Properties

Name Type Description
resolver ITokenResolver The resolver to apply to any resolvable tokens found.
scope IConstruct The scope from which resolution is performed.
preparing java.lang.Boolean Whether the resolution is being executed during the prepare phase or not.

resolverRequired

public ITokenResolver getResolver();

The resolver to apply to any resolvable tokens found.


scopeRequired

public IConstruct getScope();

The scope from which resolution is performed.


preparingOptional

public java.lang.Boolean getPreparing();
  • Type: java.lang.Boolean
  • Default: false

Whether the resolution is being executed during the prepare phase or not.