net.jini.config
Class ConfigurationFile.Literal
java.lang.Object
net.jini.config.ConfigurationFile.ParseNode
net.jini.config.ConfigurationFile.Literal
- Direct Known Subclasses:
- ConfigurationFile.ThisRef
- Enclosing class:
- ConfigurationFile
private class ConfigurationFile.Literal
- extends ConfigurationFile.ParseNode
Represents a simple literal value.
Method Summary |
(package private) Object |
eval(Object data)
Returns the result of evaluating the parse node with the specified
data provided by the call to getEntry. |
(package private) boolean |
isConstant()
Returns true if the value is a constant. |
(package private) Class |
resolve(ConfigurationFile.Entry inEntry)
Calculates and returns the declared type of the parse node, as
referred to by the specified entry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
private final Class type
value
private final Object value
ConfigurationFile.Literal
ConfigurationFile.Literal(Class type,
Object value,
int lineno)
resolve
Class resolve(ConfigurationFile.Entry inEntry)
- Description copied from class:
ConfigurationFile.ParseNode
- Calculates and returns the declared type of the parse node, as
referred to by the specified entry.
- Specified by:
resolve
in class ConfigurationFile.ParseNode
isConstant
boolean isConstant()
- Description copied from class:
ConfigurationFile.ParseNode
- Returns true if the value is a constant.
- Specified by:
isConstant
in class ConfigurationFile.ParseNode
eval
Object eval(Object data)
- Description copied from class:
ConfigurationFile.ParseNode
- Returns the result of evaluating the parse node with the specified
data provided by the call to getEntry.
- Specified by:
eval
in class ConfigurationFile.ParseNode
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.