Modifier and Type | Method and Description |
---|---|
TSelf |
configure(Consumer<? super TSelf> configure)
Configures this object.
|
Output |
connect(Input opposite,
Consumer<? super Wire> configure)
Connects to the given opposite port.
|
List<? extends Attribute> |
getAttributes()
Returns the attributes of this element.
|
List<Input> |
getOpposites()
Returns the connected opposites.
|
List<Wire> |
getWires()
Returns the connected wires.
|
String |
toString() |
TSelf |
withAttribute(Attribute attribute)
Adds an attribute.
|
TSelf |
withAttributes(Attribute... attributes)
Adds attributes.
|
TSelf |
withAttributes(List<? extends Attribute> attributes)
Adds attributes.
|
public Output connect(Input opposite, Consumer<? super Wire> configure)
Port
public List<Wire> getWires()
Port
public List<Input> getOpposites()
Port
getOpposites
in class Port<Output,Input>
public TSelf configure(Consumer<? super TSelf> configure)
configure
- the configuratorpublic List<? extends Attribute> getAttributes()
Element
getAttributes
in interface Element
public TSelf withAttribute(Attribute attribute)
Element
withAttribute
in interface Element
attribute
- the attributepublic TSelf withAttributes(List<? extends Attribute> attributes)
Element
withAttributes
in interface Element
attributes
- the attributespublic TSelf withAttributes(Attribute... attributes)
Element
withAttributes
in interface Element
attributes
- the attributesCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.