KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > genimen > djeneric > tools > generator > core > nodes > IndentNode


1 package com.genimen.djeneric.tools.generator.core.nodes;
2
3 import com.genimen.djeneric.tools.generator.core.DjentelParserEngine;
4 import com.genimen.djeneric.tools.generator.core.ParseException;
5 import com.genimen.djeneric.tools.generator.core.SimpleNode;
6 import com.genimen.djeneric.tools.generator.core.util.ParseContext;
7
8 public class IndentNode extends SimpleNode implements ValueExpression
9 {
10
11   public IndentNode(int i)
12   {
13     super(i);
14   }
15
16   public IndentNode(DjentelParserEngine p, int i)
17   {
18     super(p, i);
19   }
20
21   public String JavaDoc getName()
22   {
23     return "indent";
24   }
25
26   public String JavaDoc toString()
27   {
28     return "";
29   }
30
31   public String JavaDoc evaluate(ParseContext context)
32   {
33     return "";
34   }
35
36   public Object JavaDoc getValue(ParseContext context) throws ParseException
37   {
38     return ((ValueExpression) getChild(0)).getValue(context);
39   }
40 }
Popular Tags