net.jini.config
Class ConfigurationFile.NameRef

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

private class ConfigurationFile.NameRef
extends ConfigurationFile.ParseNode

Represents a reference to an entry, data specified by getEntry, or a field.


Field Summary
private  ConfigurationFile.Entry entry
           
private  Field field
           
private  String fullName
           
private  String name
           
 
Fields inherited from class net.jini.config.ConfigurationFile.ParseNode
lineno, override
 
Constructor Summary
ConfigurationFile.NameRef(String component, String name, int lineno)
           
 
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 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

name

private final String name

fullName

private final String fullName

entry

private ConfigurationFile.Entry entry

field

private Field field
Constructor Detail

ConfigurationFile.NameRef

ConfigurationFile.NameRef(String component,
                          String name,
                          int lineno)
Method Detail

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.