public class ConstantsProcessorImpl extends Object implements ConstantProcessor
Constructor and Description |
---|
ConstantsProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addConstants(Constants constants)
添加常量
|
boolean |
getBooleanValue(String name) |
byte |
getByteValue(String name)
value必须是数字
|
char |
getCharValue(String name) |
static ConstantProcessor |
getConstantProcessor() |
double |
getDoubleValue(String name) |
float |
getFloatValue(String name) |
int |
getIntValue(String name)
返回常量值
|
long |
getLongValue(String id) |
short |
getShortValue(String name) |
String |
getStringValue(String id) |
void |
removeConstants(Constants constants)
移除常量
|
public static ConstantProcessor getConstantProcessor()
public boolean getBooleanValue(String name)
getBooleanValue
in interface ConstantProcessor
public double getDoubleValue(String name)
getDoubleValue
in interface ConstantProcessor
public float getFloatValue(String name)
getFloatValue
in interface ConstantProcessor
public char getCharValue(String name)
getCharValue
in interface ConstantProcessor
public short getShortValue(String name)
getShortValue
in interface ConstantProcessor
public byte getByteValue(String name)
getByteValue
in interface ConstantProcessor
public long getLongValue(String id)
getLongValue
in interface ConstantProcessor
public String getStringValue(String id)
getStringValue
in interface ConstantProcessor
public int getIntValue(String name)
ConstantProcessor
getIntValue
in interface ConstantProcessor
public void addConstants(Constants constants)
ConstantProcessor
addConstants
in interface ConstantProcessor
public void removeConstants(Constants constants)
ConstantProcessor
removeConstants
in interface ConstantProcessor
Copyright © 2006–2018 TinyGroup. All rights reserved.