ALox  V. 2402 R. 0
Home ALox for C++ ALox for C# ALox for Java Download
Public Fields | Public Methods | Protected Fields | Protected Methods | List of all members
InMemoryPlugin.Section Class Reference
Inheritance diagram for InMemoryPlugin.Section:
[legend]
Collaboration diagram for InMemoryPlugin.Section:
[legend]

Class Description


A configuration section

Public Fields

AString comments = new AString()
 The comments of the section.
 
ArrayList< Entryentries = new ArrayList<Entry>()
 The list of variables of the section.
 
AString name = new AString()
 The name of the section.
 

Public Methods

 Section (CharSequence name)
 
boolean deleteEntry (CharSequence name)
 
Entry getEntry (CharSequence name, boolean create)
 

Protected Fields

Tokenizer tmpTknzr = new Tokenizer()
 A reusable tokenizer.
 
Variable tmpVar = new Variable()
 A reusable variable.
 

Protected Methods

Entry createEntry ( @SuppressWarnings("hiding") CharSequence name)
 

Constructor & Destructor Documentation

◆ Section()

Section ( CharSequence  name)

Constructs a Section

Parameters
nameThe name of the section. (AString compatible type expected.)

Reimplemented in IniFile.Section.

Member Function Documentation

◆ createEntry()

Entry createEntry ( @SuppressWarnings("hiding") CharSequence  name)
protected

Virtual method to create an Entry. (Provided to allow descendant classes to created extended versions of an entry. See also InMemoryPlugin.createSection.)

Parameters
nameThe name of the entry.
Returns
An object of type InMemoryPlugin.Entry.

Reimplemented in IniFile.Section.

◆ deleteEntry()

boolean deleteEntry ( CharSequence  name)

Deletes an entry (if exists)

Parameters
nameThe name of the variable to be searched.
Returns
true if the entry was found and deleted, false otherwise.

◆ getEntry()

Entry getEntry ( CharSequence  name,
boolean  create 
)

Searches an entry with the given name. The search is performed case insensitive

Parameters
nameThe name of the variable to be searched.
createDenotes if an entry should be created if not found.
Returns
The variable if found, else null.

The documentation for this class was generated from the following file: