public interface VariableDef extends BLangSymbol, Node
VariableDef
represent a Variable definition.
Ballerina has variables of various types. The type system includes built-in primitives, a collection of built-in structured types and arrays and record type constructors, and function pointers.
Modifier and Type | Interface and Description |
---|---|
static class |
VariableDef.Kind
Represents the variable kind.
|
Modifier and Type | Method and Description |
---|---|
VariableDef.Kind |
getKind() |
BType |
getType() |
SimpleTypeName |
getTypeName() |
int |
getVarIndex() |
void |
setKind(VariableDef.Kind kind) |
void |
setType(BType type) |
void |
setVarIndex(int index) |
getName, getPackagePath, isNative, isPublic
getNodeLocation, getWhiteSpaceDescriptor
BType getType()
void setType(BType type)
VariableDef.Kind getKind()
void setKind(VariableDef.Kind kind)
int getVarIndex()
void setVarIndex(int index)
SimpleTypeName getTypeName()
Copyright © 2018 WSO2. All rights reserved.