Class Declaration
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.Declaration
-
public class Declaration extends java.lang.Object
A declaration is a list ofInstruction
s
-
-
Field Summary
Fields Modifier and Type Field Description int
idx
The index of this declarationjava.util.List<Instruction>
instructions
The 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 boolean
equals(java.lang.Object obj)
void
execute(Environment env)
Executes the instructions against the environmentenv
int
hashCode()
java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-