InvokeMemberExpressionAst InvokeMemberExpressionAst InvokeMemberExpressionAst InvokeMemberExpressionAst Class

Definition

The ast that represents the invocation of a method, e.g. $sb.Append('abc') or [math]::Sign($i).

public ref class InvokeMemberExpressionAst : System::Management::Automation::Language::MemberExpressionAst
public class InvokeMemberExpressionAst : System.Management.Automation.Language.MemberExpressionAst
type InvokeMemberExpressionAst = class
    inherit MemberExpressionAst
    interface ISupportsAssignment
Public Class InvokeMemberExpressionAst
Inherits MemberExpressionAst
Inheritance
Derived

Constructors

InvokeMemberExpressionAst(IScriptExtent, ExpressionAst, CommandElementAst, IEnumerable<ExpressionAst>, Boolean) InvokeMemberExpressionAst(IScriptExtent, ExpressionAst, CommandElementAst, IEnumerable<ExpressionAst>, Boolean) InvokeMemberExpressionAst(IScriptExtent, ExpressionAst, CommandElementAst, IEnumerable<ExpressionAst>, Boolean) InvokeMemberExpressionAst(IScriptExtent, ExpressionAst, CommandElementAst, IEnumerable<ExpressionAst>, Boolean)

Construct an instance of a method invocation expression.

Properties

Arguments Arguments Arguments Arguments

The non-empty collection of arguments to pass when invoking the method, or null if no arguments were specified.

Expression Expression Expression Expression

The expression that produces the value to retrieve the member from. This property is never null.

(Inherited from MemberExpressionAst)
Extent Extent Extent Extent

The extent in the source this ast represents.

(Inherited from Ast)
Member Member Member Member

The name of the member to retrieve. This property is never null.

(Inherited from MemberExpressionAst)
Parent Parent Parent Parent

The parent tree for this node.

(Inherited from Ast)
Static Static Static Static

True if the member to return is static, false if the member is an instance member.

(Inherited from MemberExpressionAst)
StaticType StaticType StaticType StaticType

By default, the static type of an expression is unknown and hence we assume typeof(object).

(Inherited from ExpressionAst)

Methods

Copy() Copy() Copy() Copy()

Copy the InvokeMemberExpressionAst instance

Find(Func<Ast,Boolean>, Boolean) Find(Func<Ast,Boolean>, Boolean) Find(Func<Ast,Boolean>, Boolean) Find(Func<Ast,Boolean>, Boolean)

Traverse the entire Ast, returning the first node in the tree for which predicate returns true.

(Inherited from Ast)
FindAll(Func<Ast,Boolean>, Boolean) FindAll(Func<Ast,Boolean>, Boolean) FindAll(Func<Ast,Boolean>, Boolean) FindAll(Func<Ast,Boolean>, Boolean)

Traverse the entire Ast, returning all nodes in the tree for which predicate returns true.

(Inherited from Ast)
SafeGetValue() SafeGetValue() SafeGetValue() SafeGetValue()

Constructs the resultant object from the AST and returns it if it is safe.

(Inherited from Ast)
ToString() ToString() ToString() ToString()

Formats the ast and returns a string.

(Inherited from Ast)
Visit(AstVisitor) Visit(AstVisitor) Visit(AstVisitor) Visit(AstVisitor)

Visit each node in the Ast, calling the methods in astVisitor for each node in the ast.

(Inherited from Ast)
Visit(ICustomAstVisitor) Visit(ICustomAstVisitor) Visit(ICustomAstVisitor) Visit(ICustomAstVisitor)

Visit the Ast using a visitor that can choose how the tree traversal is performed. This visit method is for advanced uses of the visitor pattern where an AstVisitor is insufficient.

(Inherited from Ast)

Applies to