public class UnionTypeBuilder extends Object implements Serializable
| Constructor and Description |
|---|
UnionTypeBuilder(JSTypeRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
UnionTypeBuilder |
addAlternate(JSType alternate)
Adds an alternate to the union type under construction.
|
UnionTypeBuilder |
addAlternate(JSType alternate,
boolean isStructural)
Adds an alternate to the union type under construction.
|
JSType |
build()
Creates a union.
|
public UnionTypeBuilder(JSTypeRegistry registry)
public UnionTypeBuilder addAlternate(JSType alternate, boolean isStructural)
public UnionTypeBuilder addAlternate(JSType alternate)
public JSType build()
NO_TYPE.Copyright © 2009-2017 Google. All Rights Reserved.