C# Class FlatRedBall.Glue.Parsing.ParsedClass

ファイルを表示 Open project: vchelaru/FlatRedBall Class Usage Examples

Public Properties

Property Type Description
mWordSeparators char[]

Public Methods

Method Description
Clone ( ) : ParsedClass
FillWithThisAndInheitedFields ( List parsedFields ) : void
FillWithThisAndInheitedProperties ( List parsedProperties ) : void
FromType ( Type type ) : ParsedClass
GetField ( string fieldName ) : ParsedField
GetLine ( string entireString, int &startingIndex ) : string
GetMethod ( string methodName ) : ParsedMethod
GetParsedField ( string line ) : ParsedField
GetProperty ( string propertyName ) : ParsedProperty
GetWord ( string entireString, int &startingIndex ) : string
GetWord ( string entireString, int &startingIndex, char &separator ) : string
LineHasGetter ( string line ) : bool
LineHasSetter ( string line ) : bool
NumberOfValid ( char charToSearchFor, string lineOfCode ) : int
ParsedClass ( string classContents, bool trimContents ) : System
RemoveComments ( string classContents ) : string
ToString ( ) : string

Private Methods

Method Description
AddAttribute ( string line ) : void
AddToCurrentBlock ( string line, int index ) : void
CreateParsedEnum ( ) : void
CreateParsedMethod ( int startIndex, int endIndex, bool trimContents ) : void
CreateParsedProperty ( ) : void
FillGettersAndSetters ( StringBuilder getterLines, StringBuilder setterLines, bool requireGetters, bool trimContents, bool &hasGetter, bool &hasSetter, bool &hasAutomaticGetter, bool &hasAutomaticSetter ) : void
ParseContents ( string classContents, bool trim ) : void
ParseField ( string line ) : void
ParseHeader ( string classContents ) : void
ParsedClass ( ) : System
ProcessCurrentBlock ( int currentIndex, bool trimContents ) : void
RemovePreprocessoredOutCode ( string namespaceContents ) : string

Method Details

Clone() public method

public Clone ( ) : ParsedClass
return ParsedClass

FillWithThisAndInheitedFields() public method

public FillWithThisAndInheitedFields ( List parsedFields ) : void
parsedFields List
return void

FillWithThisAndInheitedProperties() public method

public FillWithThisAndInheitedProperties ( List parsedProperties ) : void
parsedProperties List
return void

FromType() public static method

public static FromType ( Type type ) : ParsedClass
type System.Type
return ParsedClass

GetField() public method

public GetField ( string fieldName ) : ParsedField
fieldName string
return ParsedField

GetLine() public static method

public static GetLine ( string entireString, int &startingIndex ) : string
entireString string
startingIndex int
return string

GetMethod() public method

public GetMethod ( string methodName ) : ParsedMethod
methodName string
return ParsedMethod

GetParsedField() public static method

public static GetParsedField ( string line ) : ParsedField
line string
return ParsedField

GetProperty() public method

public GetProperty ( string propertyName ) : ParsedProperty
propertyName string
return ParsedProperty

GetWord() public static method

public static GetWord ( string entireString, int &startingIndex ) : string
entireString string
startingIndex int
return string

GetWord() public static method

public static GetWord ( string entireString, int &startingIndex, char &separator ) : string
entireString string
startingIndex int
separator char
return string

LineHasGetter() public method

public LineHasGetter ( string line ) : bool
line string
return bool

LineHasSetter() public method

public LineHasSetter ( string line ) : bool
line string
return bool

NumberOfValid() public static method

public static NumberOfValid ( char charToSearchFor, string lineOfCode ) : int
charToSearchFor char
lineOfCode string
return int

ParsedClass() public method

public ParsedClass ( string classContents, bool trimContents ) : System
classContents string
trimContents bool
return System

RemoveComments() public static method

public static RemoveComments ( string classContents ) : string
classContents string
return string

ToString() public method

public ToString ( ) : string
return string

Property Details

mWordSeparators public_oe static_oe property

public static char[] mWordSeparators
return char[]