class ObjCArrayLiteral

Declaration

class ObjCArrayLiteral : public Expr, private TrailingObjects { /* full declaration omitted */ };

Description

ObjCArrayLiteral - used for objective-c array containers; as in: @ [ " Hello", NSApp, [NSNumber numberWithInt:42]];

Declared at: clang/include/clang/AST/ExprObjC.h:190

Inherits from: Expr, TrailingObjects

Member Variables

private unsigned int NumElements
private clang::SourceRange Range
private clang::ObjCMethodDecl* ArrayWithObjectsMethod

Inherited from Stmt:

protected

Method Overview

  • public static clang::ObjCArrayLiteral * Create(const clang::ASTContext & C, ArrayRef<clang::Expr *> Elements, clang::QualType T, clang::ObjCMethodDecl * Method, clang::SourceRange SR)
  • public static clang::ObjCArrayLiteral * CreateEmpty(const clang::ASTContext & C, unsigned int NumElements)
  • private ObjCArrayLiteral(ArrayRef<clang::Expr *> Elements, clang::QualType T, clang::ObjCMethodDecl * Method, clang::SourceRange SR)
  • private ObjCArrayLiteral(clang::Stmt::EmptyShell Empty, unsigned int NumElements)
  • public clang::Stmt::child_range children()
  • public clang::Stmt::const_child_range children() const
  • public static bool classof(const clang::Stmt * T)
  • public clang::ObjCMethodDecl * getArrayWithObjectsMethod() const
  • public clang::SourceLocation getBeginLoc() const
  • public clang::Expr * getElement(unsigned int Index)
  • public const clang::Expr * getElement(unsigned int Index) const
  • public clang::Expr ** getElements()
  • public const clang::Expr *const * getElements() const
  • public clang::SourceLocation getEndLoc() const
  • public unsigned int getNumElements() const
  • public clang::SourceRange getSourceRange() const

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

static clang::ObjCArrayLiteral* Create(
    const clang::ASTContext& C,
    ArrayRef<clang::Expr*> Elements,
    clang::QualType T,
    clang::ObjCMethodDecl* Method,
    clang::SourceRange SR)

Declared at: clang/include/clang/AST/ExprObjC.h:208

Parameters

const clang::ASTContext& C
ArrayRef<clang::Expr*> Elements
clang::QualType T
clang::ObjCMethodDecl* Method
clang::SourceRange SR

static clang::ObjCArrayLiteral* CreateEmpty(
    const clang::ASTContext& C,
    unsigned int NumElements)

Declared at: clang/include/clang/AST/ExprObjC.h:213

Parameters

const clang::ASTContext& C
unsigned int NumElements

ObjCArrayLiteral(ArrayRef<clang::Expr*> Elements,
                 clang::QualType T,
                 clang::ObjCMethodDecl* Method,
                 clang::SourceRange SR)

Declared at: clang/include/clang/AST/ExprObjC.h:197

Parameters

ArrayRef<clang::Expr*> Elements
clang::QualType T
clang::ObjCMethodDecl* Method
clang::SourceRange SR

ObjCArrayLiteral(clang::Stmt::EmptyShell Empty,
                 unsigned int NumElements)

Declared at: clang/include/clang/AST/ExprObjC.h:201

Parameters

clang::Stmt::EmptyShell Empty
unsigned int NumElements

clang::Stmt::child_range children()

Declared at: clang/include/clang/AST/ExprObjC.h:246

clang::Stmt::const_child_range children() const

Declared at: clang/include/clang/AST/ExprObjC.h:251

static bool classof(const clang::Stmt* T)

Declared at: clang/include/clang/AST/ExprObjC.h:256

Parameters

const clang::Stmt* T

clang::ObjCMethodDecl* getArrayWithObjectsMethod()
    const

Declared at: clang/include/clang/AST/ExprObjC.h:241

clang::SourceLocation getBeginLoc() const

Declared at: clang/include/clang/AST/ExprObjC.h:216

clang::Expr* getElement(unsigned int Index)

Description

getElement - Return the Element at the specified index.

Declared at: clang/include/clang/AST/ExprObjC.h:232

Parameters

unsigned int Index

const clang::Expr* getElement(
    unsigned int Index) const

Declared at: clang/include/clang/AST/ExprObjC.h:236

Parameters

unsigned int Index

clang::Expr** getElements()

Description

Retrieve elements of array of literals.

Declared at: clang/include/clang/AST/ExprObjC.h:221

const clang::Expr* const* getElements() const

Description

Retrieve elements of array of literals.

Declared at: clang/include/clang/AST/ExprObjC.h:224

clang::SourceLocation getEndLoc() const

Declared at: clang/include/clang/AST/ExprObjC.h:217

unsigned int getNumElements() const

Description

getNumElements - Return number of elements of objective-c array literal.

Declared at: clang/include/clang/AST/ExprObjC.h:229

clang::SourceRange getSourceRange() const

Declared at: clang/include/clang/AST/ExprObjC.h:218