DSRG.VKB.E_SQL
Class SimpleNode

java.lang.Object
  |
  +--DSRG.VKB.E_SQL.SimpleNode

public class SimpleNode
extends java.lang.Object
implements Node

By browsing the syntax tree of SimpleNode, we can create two objects:


Field Summary
 java.lang.String attr_name
          Attribute Name of (Attribute_name) node
 boolean bool_value
          Boolean value of this Node
static int BOOLEAN
           
 Node[] children
           
static int DOUBLE
           
 boolean has_condition
          has_condition for WHERE clause of view definition.
 boolean has_dispensable
          has_dispensable of (Attribute, Relation, Condition) component
 boolean has_replaceable
          has_replaceable of (Attribute, Relation, Condition) component
 boolean hasVExtent
          Has VExtent is used to show whether a VD has VE parameter or not.
protected  int id
           
 java.lang.String IS_name
          Information Source Name of (Relation_name, Attribute_name) node
static int LONG
           
(package private) static MKB mkb
          Global MKB of current vkb used in following functions
 java.lang.String name
          Name of this Node
protected  Node parent
           
protected  E_SQL parser
           
 java.lang.String rel_name
          Relation Name of (Relation_name, Attribute_name) node
static int STRING
           
 int type
          Type of Value node
 
Constructor Summary
SimpleNode(E_SQL p, int i)
           
SimpleNode(int i)
           
 
Method Summary
 Attribute_Component createAttributeComponent()
          Create Attribute Component object
 Condition createCondition()
          Create Condition from Primitive_clause
 Condition_Component createConditionComponent()
          Create Condition Component
(package private)  java.util.Vector createFromClause()
          Create From Clause object
 void createMKB(MKB mkb)
          Create a MKB object from the Parser Tree.
 Operator createOperator()
          Create Operator object
 Relation_Component createRelationComponent()
          Create Relation_Component Object
(package private)  java.util.Vector createSelectClause()
          Create Select Clause object
(package private)  Primitive_Value createValue()
          Create Value object.
(package private)  int createVExtent()
          Create the ViewExtent parameter of View Definition.
 void createViewDefinition(View_Definition vd, MKB ref)
          Create a View_Definition Object from the Parser Tree.
 void createVKB(VKB vkb, MKB ref)
          Create a VKB object from the Parser Tree.
(package private)  Condition_index createWhereClause()
          Create Where Clause
 void dump(java.lang.String prefix)
           
 void jjtAddChild(Node n, int i)
           
 void jjtClose()
           
 Node jjtGetChild(int i)
           
 int jjtGetNumChildren()
           
 Node jjtGetParent()
           
 void jjtOpen()
           
 void jjtSetParent(Node n)
           
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String prefix)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

parent

protected Node parent

children

public Node[] children

id

protected int id

parser

protected E_SQL parser

name

public java.lang.String name
Name of this Node

bool_value

public boolean bool_value
Boolean value of this Node

IS_name

public java.lang.String IS_name
Information Source Name of (Relation_name, Attribute_name) node

rel_name

public java.lang.String rel_name
Relation Name of (Relation_name, Attribute_name) node

attr_name

public java.lang.String attr_name
Attribute Name of (Attribute_name) node

type

public int type
Type of Value node

STRING

public static final int STRING

DOUBLE

public static final int DOUBLE

LONG

public static final int LONG

BOOLEAN

public static final int BOOLEAN

has_dispensable

public boolean has_dispensable
has_dispensable of (Attribute, Relation, Condition) component

has_replaceable

public boolean has_replaceable
has_replaceable of (Attribute, Relation, Condition) component

has_condition

public boolean has_condition
has_condition for WHERE clause of view definition. Because WHERE clause of one view definition is optional.

hasVExtent

public boolean hasVExtent
Has VExtent is used to show whether a VD has VE parameter or not.

mkb

static MKB mkb
Global MKB of current vkb used in following functions
Constructor Detail

SimpleNode

public SimpleNode(int i)

SimpleNode

public SimpleNode(E_SQL p,
                  int i)
Method Detail

jjtOpen

public void jjtOpen()
Specified by:
jjtOpen in interface Node

jjtClose

public void jjtClose()
Specified by:
jjtClose in interface Node

jjtSetParent

public void jjtSetParent(Node n)
Specified by:
jjtSetParent in interface Node

jjtGetParent

public Node jjtGetParent()
Specified by:
jjtGetParent in interface Node

jjtAddChild

public void jjtAddChild(Node n,
                        int i)
Specified by:
jjtAddChild in interface Node

jjtGetChild

public Node jjtGetChild(int i)
Specified by:
jjtGetChild in interface Node

jjtGetNumChildren

public int jjtGetNumChildren()
Specified by:
jjtGetNumChildren in interface Node

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(java.lang.String prefix)

dump

public void dump(java.lang.String prefix)

createMKB

public void createMKB(MKB mkb)
Create a MKB object from the Parser Tree.
XIN: Why do we have this?

createVKB

public void createVKB(VKB vkb,
                      MKB ref)
Create a VKB object from the Parser Tree.
Parameters:
vd - reference of VKB needed to be created by this parser
ref - reference of MKB which parser based on.

createViewDefinition

public void createViewDefinition(View_Definition vd,
                                 MKB ref)
Create a View_Definition Object from the Parser Tree.
Parameters:
vd - reference of view defintion needed to be created by this parser
ref - reference of MKB which parser based on.

createVExtent

int createVExtent()
Create the ViewExtent parameter of View Definition. The parameter could be "SUBSET", "SUPERSET", "EQUIVALENT", and "DONTCARE"

createSelectClause

java.util.Vector createSelectClause()
Create Select Clause object

createAttributeComponent

public Attribute_Component createAttributeComponent()
Create Attribute Component object

createFromClause

java.util.Vector createFromClause()
Create From Clause object

createRelationComponent

public Relation_Component createRelationComponent()
Create Relation_Component Object

createWhereClause

Condition_index createWhereClause()
Create Where Clause

createConditionComponent

public Condition_Component createConditionComponent()
Create Condition Component

createCondition

public Condition createCondition()
Create Condition from Primitive_clause

createOperator

public Operator createOperator()
Create Operator object

createValue

Primitive_Value createValue()
Create Value object.