Skip to content

Variable Entity

Variable Declaration Entity Entity

Variable declaration entity represents a variable declaration in the source code. It contains information about the variable name, visibility, return type, and other attributes.

<variabledatatype> <name> = <variablevalue>;

Attributes

EntityDescription
getName()Variable’s name
getVisibility()Variable’s visibility (public, private, protected)
getVariableDataType()Variable’s data type
getVariableValue()Variable’s value
getScope()Variable’s scope (local, field)