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 ConstantProcessorpublic double getDoubleValue(String name)
getDoubleValue in interface ConstantProcessorpublic float getFloatValue(String name)
getFloatValue in interface ConstantProcessorpublic char getCharValue(String name)
getCharValue in interface ConstantProcessorpublic short getShortValue(String name)
getShortValue in interface ConstantProcessorpublic byte getByteValue(String name)
getByteValue in interface ConstantProcessorpublic long getLongValue(String id)
getLongValue in interface ConstantProcessorpublic String getStringValue(String id)
getStringValue in interface ConstantProcessorpublic int getIntValue(String name)
ConstantProcessorgetIntValue in interface ConstantProcessorpublic void addConstants(Constants constants)
ConstantProcessoraddConstants in interface ConstantProcessorpublic void removeConstants(Constants constants)
ConstantProcessorremoveConstants in interface ConstantProcessorCopyright © 2006–2018 TinyGroup. All rights reserved.