EnumValueDeclaration (Common API)

Overview - Common API - Client API - Admin API - Runtime API

EnumValueDeclaration

Class representing a value from a set of enumerated values

Details

  • Extends Property

  • Module common

See also

Method Summary

Name Returns Description
constructor void Create a EnumValueDeclaration

Inherited Method Summary

Supertype Name Returns Description
Property getParent ClassDeclaration Returns the owner of this property
Property getName string Returns the name of a property
Property getType string Returns the type of a property
Property isOptional boolean Returns true if the field is optional
Property getFullyQualifiedTypeName string Returns the fully qualified type name of a property
Property getFullyQualifiedName string Returns the fully name of a property (ns + class name + property name)
Property getNamespace string Returns the namespace of the parent of this property
Property isArray boolean Returns true if the field is declared as an array type
Property isTypeEnum boolean Returns true if the field is declared as an enumerated value
Property isPrimitive boolean Returns true if this property is a primitive type

Method Details

new EnumValueDeclaration()

Create a EnumValueDeclaration.

See also

Parameters

Name Type Mandatory Description
parent ClassDeclaration Yes The owner of this property
ast Object Yes The AST created by the parser

Inherited methods

getParent

ClassDeclaration getParent( )

Inherited from: Property

Returns the owner of this property

Returns

ClassDeclaration - the parent class declaration

See also

Parameters

No parameters

getName

string getName( )

Inherited from: Property

Returns the name of a property

Returns

string - the name of this field

See also

Parameters

No parameters

getType

string getType( )

Inherited from: Property

Returns the type of a property

Returns

string - the type of this field

See also

Parameters

No parameters

isOptional

boolean isOptional( )

Inherited from: Property

Returns true if the field is optional

Returns

boolean - true if the field is optional

See also

Parameters

No parameters

getFullyQualifiedTypeName

string getFullyQualifiedTypeName( )

Inherited from: Property

Returns the fully qualified type name of a property

Returns

string - the fully qualified type of this property

See also

Parameters

No parameters

getFullyQualifiedName

string getFullyQualifiedName( )

Inherited from: Property

Returns the fully name of a property (ns + class name + property name)

Returns

string - the fully qualified name of this property

See also

Parameters

No parameters

getNamespace

string getNamespace( )

Inherited from: Property

Returns the namespace of the parent of this property

Returns

string - the namespace of the parent of this property

See also

Parameters

No parameters

isArray

boolean isArray( )

Inherited from: Property

Returns true if the field is declared as an array type

Returns

boolean - true if the property is an array type

See also

Parameters

No parameters

isTypeEnum

boolean isTypeEnum( )

Inherited from: Property

Returns true if the field is declared as an enumerated value

Returns

boolean - true if the property is an enumerated value

See also

Parameters

No parameters

isPrimitive

boolean isPrimitive( )

Inherited from: Property

Returns true if this property is a primitive type.

Returns

boolean - true if the property is a primitive type.

See also

Parameters

No parameters