Class Declaration
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.Declaration
-
public class Declaration extends Object
A declaration is a list ofInstruction
s
-
-
Field Summary
Fields Modifier and Type Field Description int
idx
The index of this declarationList<Instruction>
instructions
The instructions in this declaration
-
Constructor Summary
Constructors Constructor Description Declaration(List<Instruction> instructions, int idx)
Create a newDeclaration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
void
execute(Environment env)
Executes the instructions against the environmentenv
int
hashCode()
String
toString()
-
-
-
Field Detail
-
instructions
public final 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(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
-
-