Package | Description |
---|---|
org.openstreetmap.josm.data.validation.tests | |
org.openstreetmap.josm.gui.mappaint | |
org.openstreetmap.josm.gui.mappaint.mapcss |
Modifier and Type | Method and Description |
---|---|
(package private) TestError |
MapCSSTagChecker.TagCheck.getErrorForPrimitive(OsmPrimitive p,
Selector matchingSelector,
Environment env) |
(package private) Selector |
MapCSSTagChecker.TagCheck.whichSelectorMatchesEnvironment(Environment env) |
Modifier and Type | Method and Description |
---|---|
Environment |
Environment.withChild(OsmPrimitive child)
Creates a clone of this environment, with the specified child.
|
Environment |
Environment.withChildAndIndexAndLinkContext(OsmPrimitive child,
int index)
Creates a clone of this environment, with the specified child, index, and context set to
Condition.Context.LINK . |
Environment |
Environment.withContext(Condition.Context context)
Creates a clone of this environment, with the specified
Condition.Context . |
Environment |
Environment.withIndex(int index)
Creates a clone of this environment, with the specified index.
|
Environment |
Environment.withLinkContext()
Creates a clone of this environment, with context set to
Condition.Context.LINK . |
Environment |
Environment.withParent(OsmPrimitive parent)
Creates a clone of this environment, with the specified parent.
|
Environment |
Environment.withParentAndIndexAndLinkContext(OsmPrimitive parent,
int index)
Creates a clone of this environment, with the specified parent, index, and context set to
Condition.Context.LINK . |
Environment |
Environment.withPrimitive(OsmPrimitive osm)
Creates a clone of this environment, with the specified primitive.
|
Modifier and Type | Method and Description |
---|---|
static RepeatImageElemStyle |
RepeatImageElemStyle.create(Environment env) |
static NodeElemStyle |
NodeElemStyle.create(Environment env) |
static LineTextElemStyle |
LineTextElemStyle.create(Environment env) |
static AreaElemStyle |
AreaElemStyle.create(Environment env) |
static BoxTextElemStyle |
BoxTextElemStyle.create(Environment env,
BoxTextElemStyle.BoxProvider boxProvider) |
static BoxTextElemStyle |
BoxTextElemStyle.create(Environment env,
BoxTextElemStyle.BoxProvider boxProvider,
java.awt.Rectangle box) |
static TextElement |
TextElement.create(Environment env,
java.awt.Color defaultTextColor,
boolean defaultAnnotate)
Builds a text element from style properties in
c and the
default text color defaultTextColor |
private static NodeElemStyle |
NodeElemStyle.create(Environment env,
float default_major_z_index,
boolean allowDefault) |
static BoxTextElemStyle |
BoxTextElemStyle.create(Environment env,
java.awt.Rectangle box) |
static LineElemStyle |
LineElemStyle.createCasing(Environment env) |
static MapImage |
NodeElemStyle.createIcon(Environment env,
java.lang.String[] keys) |
private static LineElemStyle |
LineElemStyle.createImpl(Environment env,
LineElemStyle.LineType type) |
static LineElemStyle |
LineElemStyle.createLeftCasing(Environment env) |
static LineElemStyle |
LineElemStyle.createLine(Environment env) |
static LineElemStyle |
LineElemStyle.createRightCasing(Environment env) |
private static NodeElemStyle.Symbol |
NodeElemStyle.createSymbol(Environment env) |
Constructor and Description |
---|
Environment(Environment other)
Creates a clone of the environment
other . |
Modifier and Type | Field and Description |
---|---|
private Environment |
Selector.ChildOrParentSelector.MatchingReferrerFinder.e |
protected Environment |
Selector.ChildOrParentSelector.AbstractFinder.e |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
Condition.applies(Environment e) |
boolean |
Condition.SimpleKeyValueCondition.applies(Environment e) |
boolean |
Condition.KeyValueCondition.applies(Environment env) |
boolean |
Condition.KeyValueRegexpCondition.applies(Environment env) |
boolean |
Condition.RoleCondition.applies(Environment env) |
boolean |
Condition.IndexCondition.applies(Environment env) |
boolean |
Condition.KeyCondition.applies(Environment e) |
boolean |
Condition.ClassCondition.applies(Environment env) |
boolean |
Condition.PseudoClassCondition.applies(Environment e) |
boolean |
Condition.ExpressionCondition.applies(Environment env) |
boolean |
Condition.PseudoClassCondition.appliesImpl(Environment e) |
static java.lang.String |
ExpressionFactory.Functions.child_tag(Environment env,
java.lang.String key)
Gets the value of the key
key from the object's child. |
java.lang.Object |
Expression.evaluate(Environment env)
Evaluate this expression.
|
java.lang.Object |
LiteralExpression.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.NullExpression.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.CondOperator.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.AndOperator.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.OrOperator.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.LengthFunction.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.MinMaxFunction.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.ParameterFunction.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.ArrayFunction.evaluate(Environment env) |
void |
MapCSSRule.execute(Environment env)
Executes the instructions against the environment
env |
void |
MapCSSRule.Declaration.execute(Environment env)
Executes the instructions against the environment
env |
void |
Instruction.execute(Environment env) |
void |
Instruction.AssignmentInstruction.execute(Environment env) |
java.lang.String |
Subpart.getId(Environment env) |
java.lang.String |
Subpart.StringSubpart.getId(Environment env) |
java.lang.String |
Subpart.ExpressionSubpart.getId(Environment env) |
static boolean |
ExpressionFactory.Functions.has_tag_key(Environment env,
java.lang.String key)
Determines whether the object has a tag with the given key.
|
static java.lang.Float |
ExpressionFactory.Functions.index(Environment env)
Returns the index of node in parent way or member in parent relation.
|
static java.lang.Boolean |
ExpressionFactory.Functions.is_prop_set(Environment env,
java.lang.String key)
Determines whether property
key is set. |
static java.lang.Boolean |
ExpressionFactory.Functions.is_prop_set(Environment env,
java.lang.String key,
java.lang.String layer)
Determines whether property
key is set on layer layer . |
static boolean |
ExpressionFactory.Functions.is_right_hand_traffic(Environment env)
check if there is right-hand traffic at the current location
|
static java.lang.Boolean |
ExpressionFactory.Functions.JOSM_search(Environment env,
java.lang.String searchStr)
Determines whether the JOSM search with
searchStr applies to the object. |
boolean |
Selector.matches(Environment env)
Apply the selector to the primitive and check if it matches.
|
boolean |
Selector.ChildOrParentSelector.matches(Environment e) |
boolean |
Selector.AbstractSelector.matches(Environment env)
Determines if all conditions match the given environment.
|
boolean |
Selector.LinkSelector.matches(Environment env) |
boolean |
Selector.GeneralSelector.matches(Environment e) |
boolean |
Selector.OptimizedGeneralSelector.matchesBase(Environment e) |
boolean |
Selector.GeneralSelector.matchesConditions(Environment e) |
static int |
ExpressionFactory.Functions.number_of_tags(Environment env)
Get the number of tags for the current primitive.
|
static long |
ExpressionFactory.Functions.osm_id(Environment env)
Returns the OSM id of the current object.
|
static java.lang.String |
ExpressionFactory.Functions.parent_tag(Environment env,
java.lang.String key)
Gets the first non-null value of the key
key from the object's parent(s). |
static java.lang.Object |
ExpressionFactory.Functions.prop(Environment env,
java.lang.String key)
Returns the value of the property
key , e.g., prop("width") . |
static java.lang.Object |
ExpressionFactory.Functions.prop(Environment env,
java.lang.String key,
java.lang.String layer)
Returns the value of the property
key from layer layer . |
static java.lang.String |
ExpressionFactory.Functions.role(Environment env)
Returns the role of current object in parent relation, or role of child if current object is a relation.
|
static java.lang.Object |
ExpressionFactory.Functions.setting(Environment env,
java.lang.String key)
Get value of a setting.
|
static java.lang.String |
ExpressionFactory.Functions.tag(Environment env,
java.lang.String key)
Gets the value of the key
key from the object in question. |
Constructor and Description |
---|
AbstractFinder(Environment e) |
ContainsFinder(Environment e) |
CrossingFinder(Environment e) |
MatchingReferrerFinder(Environment e)
Constructor
|