Builder(String name, Object variables) { assert name != null; assert TruffleLanguage.AccessAPI.interopAccess().isTruffleObject(variables) : Objects.toString(variables); this.name = name; this.variables = variables; }
Builder(String name, Object variables) { assert name != null; assert TruffleLanguage.AccessAPI.interopAccess().isTruffleObject(variables) : Objects.toString(variables); this.name = name; this.variables = variables; }
Scope(String name, Node node, Object arguments, Object variables) { this.name = name; this.node = node; assert arguments == null || TruffleLanguage.AccessAPI.interopAccess().isTruffleObject(arguments) : Objects.toString(arguments); this.arguments = arguments; assert TruffleLanguage.AccessAPI.interopAccess().isTruffleObject(variables) : Objects.toString(variables); this.variables = variables; }
/** * Set arguments of the scope. * <p> * The properties representing the arguments needs to have deterministic iteration order, * argument declaration order is recommended. * * @param arguments arguments of the scope * @since 0.30 */ @SuppressWarnings("hiding") public Builder arguments(Object arguments) { assert arguments == null || TruffleLanguage.AccessAPI.interopAccess().isTruffleObject(arguments) : Objects.toString(arguments); this.arguments = arguments; return this; }
/** * Set arguments of the scope. * <p> * The properties representing the arguments needs to have deterministic iteration order, * argument declaration order is recommended. * * @param arguments arguments of the scope * @since 0.30 */ @SuppressWarnings("hiding") public Builder arguments(Object arguments) { assert arguments == null || TruffleLanguage.AccessAPI.interopAccess().isTruffleObject(arguments) : Objects.toString(arguments); this.arguments = arguments; return this; }
Scope(String name, Node node, Object arguments, Object variables) { this.name = name; this.node = node; assert arguments == null || TruffleLanguage.AccessAPI.interopAccess().isTruffleObject(arguments) : Objects.toString(arguments); this.arguments = arguments; assert TruffleLanguage.AccessAPI.interopAccess().isTruffleObject(variables) : Objects.toString(variables); this.variables = variables; }