C# Class Rhino.Ast.PropertyGet

AST node for the '.' operator.
AST node for the '.' operator. Node type is Rhino.Token.GETPROP .
Inheritance: InfixExpression
Datei anzeigen Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
GetProperty ( ) : Name

Returns the property being accessed.

Returns the property being accessed.

GetTarget ( ) : AstNode

Returns the object on which the property is being fetched.

Returns the object on which the property is being fetched. Should never be null .

PropertyGet ( ) : System.Text
PropertyGet ( AstNode target, Name property ) : System.Text

Constructor.

Constructor. Updates bounds to include left ( target ) and right ( property ) nodes.

PropertyGet ( AstNode target, Name property, int dotPosition ) : System.Text
PropertyGet ( int pos ) : System.Text
PropertyGet ( int pos, int len ) : System.Text
PropertyGet ( int pos, int len, AstNode target, Name property ) : System.Text
SetProperty ( Name property ) : void

Sets the property being accessed, and sets its parent to this node.

Sets the property being accessed, and sets its parent to this node.

SetTarget ( AstNode target ) : void

Sets target object, and sets its parent to this node.

Sets target object, and sets its parent to this node.

ToSource ( int depth ) : string
Visit ( NodeVisitor v ) : void

Visits this node, the target expression, and the property name.

Visits this node, the target expression, and the property name.

Method Details

GetProperty() public method

Returns the property being accessed.
Returns the property being accessed.
public GetProperty ( ) : Name
return Name

GetTarget() public method

Returns the object on which the property is being fetched.
Returns the object on which the property is being fetched. Should never be null .
public GetTarget ( ) : AstNode
return AstNode

PropertyGet() public method

public PropertyGet ( ) : System.Text
return System.Text

PropertyGet() public method

Constructor.
Constructor. Updates bounds to include left ( target ) and right ( property ) nodes.
public PropertyGet ( AstNode target, Name property ) : System.Text
target AstNode
property Name
return System.Text

PropertyGet() public method

public PropertyGet ( AstNode target, Name property, int dotPosition ) : System.Text
target AstNode
property Name
dotPosition int
return System.Text

PropertyGet() public method

public PropertyGet ( int pos ) : System.Text
pos int
return System.Text

PropertyGet() public method

public PropertyGet ( int pos, int len ) : System.Text
pos int
len int
return System.Text

PropertyGet() public method

public PropertyGet ( int pos, int len, AstNode target, Name property ) : System.Text
pos int
len int
target AstNode
property Name
return System.Text

SetProperty() public method

Sets the property being accessed, and sets its parent to this node.
Sets the property being accessed, and sets its parent to this node.
/// } if /// property /// is /// null ///
public SetProperty ( Name property ) : void
property Name
return void

SetTarget() public method

Sets target object, and sets its parent to this node.
Sets target object, and sets its parent to this node.
/// } if /// target /// is /// null ///
public SetTarget ( AstNode target ) : void
target AstNode /// expression evaluating to the object upon which /// to do the property lookup ///
return void

ToSource() public method

public ToSource ( int depth ) : string
depth int
return string

Visit() public method

Visits this node, the target expression, and the property name.
Visits this node, the target expression, and the property name.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
return void