C# 클래스 JsonFx.BuildTools.CssCompactor.CssParser

파일 보기 프로젝트 열기: pocket-playlab/jsonfx-v1 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Copy string
ParseAtRule CssAtRule
ParseDeclaration CssDeclaration
ParseRuleSet CssRuleSet
ParseSelector CssSelector
ParseStatement CssStatement
ParseStyleSheet CssStyleSheet
ParseValue CssValueList
PutBack void
Read bool

공개 메소드들

메소드 설명
CssParser ( string filePath ) : System

Ctor.

CssParser ( string filePath, string source ) : System

Ctor.

Write ( TextWriter writer, CssCompactor options ) : void

비공개 메소드들

메소드 설명
Copy ( int start ) : string

Copies chars from start until the position before the current position

ParseAtRule ( ) : CssAtRule

(BNF) at-rule : ATKEYWORD S* any* [ block | ';' S* ];

NOTE: each at-rule might parse differently according to CSS3 The @media block for example contains a block of statements while other at-rules with a block contain a block of declarations

ParseDeclaration ( ) : CssDeclaration

(BNF) declaration : property ':' S* value; (BNF) property : IDENT S*;

ParseRuleSet ( ) : CssRuleSet

(BNF) ruleset : selector? '{' S* declaration? [ ';' S* declaration? ]* '}' S*;

ParseSelector ( ) : CssSelector

(BNF) selector: any+;

ParseStatement ( ) : CssStatement

(BNF) statement : ruleset | at-rule;

ParseStyleSheet ( ) : CssStyleSheet

(BNF) stylesheet : [ CDO | CDC | S | statement ]*;

ParseValue ( ) : CssValueList

(BNF) value : [ any | block | ATKEYWORD S* ]+; (BNF) any : [ IDENT | NUMBER | PERCENTAGE | DIMENSION | STRING | DELIM | URI | HASH | UNICODE-RANGE | INCLUDES | FUNCTION S* any* ')' | DASHMATCH | '(' S* any* ')' | '[' S* any* ']' ] S*;

PutBack ( ) : void

Put one character back

Read ( char &ch ) : bool

메소드 상세

CssParser() 공개 메소드

Ctor.
public CssParser ( string filePath ) : System
filePath string path to source
리턴 System

CssParser() 공개 메소드

Ctor.
public CssParser ( string filePath, string source ) : System
filePath string path to source
source string actual source
리턴 System

Write() 공개 메소드

public Write ( TextWriter writer, CssCompactor options ) : void
writer System.IO.TextWriter
options CssCompactor
리턴 void