Example usage for com.google.common.css.compiler.ast CssDeclarationNode getPropertyName

List of usage examples for com.google.common.css.compiler.ast CssDeclarationNode getPropertyName

Introduction

In this page you can find the example usage for com.google.common.css.compiler.ast CssDeclarationNode getPropertyName.

Prototype

public CssPropertyNode getPropertyName() 

Source Link

Usage

From source file:com.google.gwt.resources.gss.ImageSpriteCreator.java

@Override
public boolean enterDeclaration(CssDeclarationNode declaration) {
    String propertyName = declaration.getPropertyName().getPropertyName();

    if (SPRITE_PROPERTY_NAME.equals(propertyName)) {
        createSprite(declaration);/* w  ww.ja  v a 2 s  . c  o  m*/
        return true;
    }

    return super.enterDeclaration(declaration);
}