Partilhar via


ConvertExpressionAst Class

Definition

The ast that represents a cast expression, e.g. [wmiclass]"Win32_Process".

public ref class ConvertExpressionAst : System::Management::Automation::Language::AttributedExpressionAst
public class ConvertExpressionAst : System.Management.Automation.Language.AttributedExpressionAst
type ConvertExpressionAst = class
    inherit AttributedExpressionAst
Public Class ConvertExpressionAst
Inherits AttributedExpressionAst
Inheritance

Constructors

ConvertExpressionAst(IScriptExtent, TypeConstraintAst, ExpressionAst)

Construct a cast expression.

Properties

Attribute

The attribute or type constraint for this expression. This property is never null.

(Inherited from AttributedExpressionAst)
Child

The expression that has an attribute or type constraint applied to it. This property is never null.

(Inherited from AttributedExpressionAst)
Extent

The extent in the source this ast represents.

(Inherited from Ast)
Parent

The parent tree for this node.

(Inherited from Ast)
StaticType

The static type produced after the cast is normally the type named by Type, but in some cases it may not be, in which, Object is assumed.

Type

The type to convert to.

Methods

Copy()

Copy the ConvertExpressionAst instance.

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)

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

(Inherited from Ast)
SafeGetValue()

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

(Inherited from Ast)
SafeGetValue(Boolean)

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

(Inherited from Ast)
ToString()

Formats the ast and returns a string.

(Inherited from Ast)
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 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