net.jini.config
Class ConfigurationFile.Entry

java.lang.Object
  extended by net.jini.config.ConfigurationFile.ParseNode
      extended by net.jini.config.ConfigurationFile.Entry
Enclosing class:
ConfigurationFile

private class ConfigurationFile.Entry
extends ConfigurationFile.ParseNode

Represents an entry.


Field Summary
(package private)  String component
           
private  boolean evaluated
           
private  boolean evaluating
           
(package private)  String fullName
           
private  boolean isConstant
           
(package private)  boolean isOverride
           
(package private)  boolean isPrivate
           
(package private)  boolean isStatic
           
private  ConfigurationFile.ParseNode node
           
private  boolean refersToData
           
private  boolean resolved
           
private  boolean resolving
           
private  Class type
           
private  Object value
           
 
Fields inherited from class net.jini.config.ConfigurationFile.ParseNode
lineno, override
 
Constructor Summary
ConfigurationFile.Entry(String component, String fullName, boolean isPrivate, boolean isStatic, boolean isOverride, int lineno, ConfigurationFile.Parser parser)
           
 
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 getRefersToData()
           
(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.
(package private)  void setRefersToData()
           
 
Methods inherited from class net.jini.config.ConfigurationFile.ParseNode
oops, oops, oops
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

final String component

fullName

final String fullName

node

private final ConfigurationFile.ParseNode node

isPrivate

final boolean isPrivate

isStatic

final boolean isStatic

isOverride

final boolean isOverride

type

private Class type

resolved

private boolean resolved

resolving

private boolean resolving

isConstant

private boolean isConstant

refersToData

private boolean refersToData

evaluated

private boolean evaluated

evaluating

private boolean evaluating

value

private Object value
Constructor Detail

ConfigurationFile.Entry

ConfigurationFile.Entry(String component,
                        String fullName,
                        boolean isPrivate,
                        boolean isStatic,
                        boolean isOverride,
                        int lineno,
                        ConfigurationFile.Parser parser)
                  throws ConfigurationException,
                         IOException
Throws:
ConfigurationException
IOException
Method Detail

getRefersToData

boolean getRefersToData()

setRefersToData

void setRefersToData()

resolve

Class resolve(ConfigurationFile.Entry inEntry)
        throws ConfigurationException
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
Throws:
ConfigurationException

isConstant

boolean isConstant()
             throws ConfigurationException
Description copied from class: ConfigurationFile.ParseNode
Returns true if the value is a constant.

Specified by:
isConstant in class ConfigurationFile.ParseNode
Throws:
ConfigurationException

eval

Object eval(Object data)
      throws ConfigurationException
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
Throws:
ConfigurationException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.