net.jini.config
Class ConfigurationFile.ParseNode

java.lang.Object
  extended by net.jini.config.ConfigurationFile.ParseNode
Direct Known Subclasses:
ConfigurationFile.Call, ConfigurationFile.Cast, ConfigurationFile.ClassLiteral, ConfigurationFile.Entry, ConfigurationFile.Literal, ConfigurationFile.NameRef, ConfigurationFile.StringLiteral
Enclosing class:
ConfigurationFile

private abstract class ConfigurationFile.ParseNode
extends Object

Base class to represent parse results.


Field Summary
(package private)  int lineno
           
(package private)  int override
           
 
Constructor Summary
ConfigurationFile.ParseNode(int lineno)
           
 
Method Summary
(package private) abstract  Object eval(Object data)
          Returns the result of evaluating the parse node with the specified data provided by the call to getEntry.
(package private) abstract  boolean isConstant()
          Returns true if the value is a constant.
(package private)  void oops(String what)
          Throws a ConfigurationException for the an error described by the what argument, using the line number and override for this parse node.
(package private)  void oops(String what, int lineno)
          Throws a ConfigurationException for the an error described by the what argument, at the specified line number, with the override for this parse node.
(package private)  void oops(String what, Throwable t)
          Throws a ConfigurationException for the an error described by the what argument, using the line number and override for this parse node, and caused by the specified exception, which may be null.
(package private) abstract  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
 

Field Detail

lineno

final int lineno

override

final int override
Constructor Detail

ConfigurationFile.ParseNode

ConfigurationFile.ParseNode(int lineno)
Method Detail

resolve

abstract Class resolve(ConfigurationFile.Entry inEntry)
                throws ConfigurationException
Calculates and returns the declared type of the parse node, as referred to by the specified entry.

Throws:
ConfigurationException

isConstant

abstract boolean isConstant()
                     throws ConfigurationException
Returns true if the value is a constant.

Throws:
ConfigurationException

eval

abstract Object eval(Object data)
              throws ConfigurationException
Returns the result of evaluating the parse node with the specified data provided by the call to getEntry.

Throws:
ConfigurationException

oops

void oops(String what)
    throws ConfigurationException
Throws a ConfigurationException for the an error described by the what argument, using the line number and override for this parse node.

Throws:
ConfigurationException

oops

void oops(String what,
          int lineno)
    throws ConfigurationException
Throws a ConfigurationException for the an error described by the what argument, at the specified line number, with the override for this parse node.

Throws:
ConfigurationException

oops

void oops(String what,
          Throwable t)
    throws ConfigurationException
Throws a ConfigurationException for the an error described by the what argument, using the line number and override for this parse node, and caused by the specified exception, which may be null.

Throws:
ConfigurationException


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