public class StyleDeclaration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
count
The number of values in the declaration.
|
protected int[] |
indexes
The value indexes.
|
protected static int |
INITIAL_LENGTH |
protected boolean[] |
priorities
The value priorities.
|
protected Value[] |
values
The values.
|
Constructor and Description |
---|
StyleDeclaration() |
Modifier and Type | Method and Description |
---|---|
void |
append(Value v,
int idx,
boolean prio)
Appends a value to the declaration.
|
int |
getIndex(int idx)
Returns the property index of a value.
|
boolean |
getPriority(int idx)
Tells whether a value is important.
|
Value |
getValue(int idx)
Returns the value at the given index.
|
void |
put(int idx,
Value v,
int i,
boolean prio)
Sets a value within the declaration.
|
void |
remove(int idx)
Removes the value at the given index.
|
int |
size()
Returns the number of values in the declaration.
|
java.lang.String |
toString(CSSEngine eng)
Returns a printable representation of this style rule.
|
protected static final int INITIAL_LENGTH
protected Value[] values
protected int[] indexes
protected boolean[] priorities
protected int count
public int size()
public Value getValue(int idx)
public int getIndex(int idx)
public boolean getPriority(int idx)
public void remove(int idx)
public void put(int idx, Value v, int i, boolean prio)
public void append(Value v, int idx, boolean prio)
public java.lang.String toString(CSSEngine eng)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.