public class Stack extends Object
| Constructor and Description |
|---|
Stack() |
| Modifier and Type | Method and Description |
|---|---|
Stack |
addDependency(Dependency dependency)
Adds a dependency.
|
Stack |
addVariable(String key,
String value)
Adds a new variables or updates the value of an existing one.
|
void |
applyFiltering()
Apply filtering on the set of dependencies.
|
static Stack |
fromDescriptor(File descriptor)
Reads a stack descriptor.
|
List<Dependency> |
getDependencies()
Gets the dependencies, empty if none.
|
Map<String,String> |
getVariables()
Gets the variables.
|
Stack |
removeDependency(Dependency dependency)
Removes a dependency.
|
Stack |
removeVariable(String key)
Removes a variable.
|
public Stack addVariable(String key, String value)
key - the variable namevalue - the valueStack instancepublic Stack removeVariable(String key)
key - the variable nameStack instancepublic Stack addDependency(Dependency dependency)
dependency - the dependencyStack instancepublic Stack removeDependency(Dependency dependency)
dependency - the dependencyStack instancepublic Map<String,String> getVariables()
public void applyFiltering()
public List<Dependency> getDependencies()
Copyright © 2016–2019. All rights reserved.