Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.model.preprocessor.symbol
Class Symbol

java.lang.Object
  extended by org.eclipse.mtj.core.model.preprocessor.symbol.Symbol

public class Symbol
extends Object

The model of preprocess symbol. The instance of this class contains the name and value of a preprocess symbol.


Field Summary
static int TYPE_ABILITY
           
static int TYPE_CONFIG
           
 
Constructor Summary
Symbol(String name, String value)
          The constructor.
 
Method Summary
 boolean equals(Object obj)
          If name equals, then symbol equals.
 String getName()
           
 String getSafeValue()
          Get value in safe format for preprocessor.
 int getType()
           
 String getValue()
           
 int hashCode()
           
 void setName(String identifier)
           
 void setType(int type)
           
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_ABILITY

public static final int TYPE_ABILITY
See Also:
Constant Field Values

TYPE_CONFIG

public static final int TYPE_CONFIG
See Also:
Constant Field Values
Constructor Detail

Symbol

public Symbol(String name,
              String value)
The constructor.

Parameters:
name - - The name of the symbol, should be unique in a SymbolSet.
value - - The value of the symbol.
Method Detail

equals

public boolean equals(Object obj)
If name equals, then symbol equals.

Overrides:
equals in class Object

getName

public String getName()

getSafeValue

public String getSafeValue()
Get value in safe format for preprocessor.

Returns:

getType

public int getType()

getValue

public String getValue()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

setName

public void setName(String identifier)

setType

public void setType(int type)

setValue

public void setValue(String value)

toString

public String toString()
Overrides:
toString in class Object

Mobile Tools for Java
Release 1.0