Class Declaration
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.Declaration
-
public class Declaration extends java.lang.Object
A declaration is a list ofInstructions
-
-
Field Summary
Fields Modifier and Type Field Description intidxThe index of this declarationjava.util.List<Instruction>instructionsThe instructions in this declaration
-
Constructor Summary
Constructors Constructor Description Declaration(java.util.List<Instruction> instructions, int idx)Create a newDeclaration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)voidexecute(Environment env)Executes the instructions against the environmentenvinthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
instructions
public final java.util.List<Instruction> instructions
The instructions in this declaration
-
idx
public final int idx
The index of this declarationdeclarations in the StyleSource are numbered consecutively
-
-
Constructor Detail
-
Declaration
public Declaration(java.util.List<Instruction> instructions, int idx)
Create a newDeclaration- Parameters:
instructions- The instructions for this declarationidx- The index in theStyleSource
-
-
Method Detail
-
execute
public void execute(Environment env)
Executes the instructions against the environment
env- Parameters:
env- the environment
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-