All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.ripe.db.whois.common.generated.DefaultParserVal Maven / Gradle / Ivy

//#############################################
//## file: DefaultParser.java
//## Generated by Byacc/j
//#############################################
package net.ripe.db.whois.common.generated;

/**
 * BYACC/J Semantic Value for parser: DefaultParser
 * This class provides some of the functionality
 * of the yacc/C 'union' directive
 */
public class DefaultParserVal
{
/**
 * integer value of this 'union'
 */
public int ival;

/**
 * double value of this 'union'
 */
public double dval;

/**
 * string value of this 'union'
 */
public String sval;

/**
 * object value of this 'union'
 */
public Object obj;

//#############################################
//## C O N S T R U C T O R S
//#############################################
/**
 * Initialize me without a value
 */
public DefaultParserVal()
{
}
/**
 * Initialize me as an int
 */
public DefaultParserVal(int val)
{
  ival=val;
}

/**
 * Initialize me as a double
 */
public DefaultParserVal(double val)
{
  dval=val;
}

/**
 * Initialize me as a string
 */
public DefaultParserVal(String val)
{
  sval=val;
}

/**
 * Initialize me as an Object
 */
public DefaultParserVal(Object val)
{
  obj=val;
}
}//end class

//#############################################
//## E N D    O F    F I L E
//#############################################




© 2015 - 2024 Weber Informatics LLC | Privacy Policy