de.neuland.jade4j.parser.node
Class Node

java.lang.Object
  extended by de.neuland.jade4j.parser.node.Node
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AssigmentNode, AttributedNode, BlockNode, CaseConditionNode, CaseNode, CommentNode, ConditionalNode, DoctypeNode, EachNode, ExpressionNode, FilterNode, IfConditionNode, LiteralNode, TextNode, WhileNode

public abstract class Node
extends Object
implements Cloneable


Field Summary
protected  Node block
           
protected  String fileName
           
protected  int lineNumber
           
protected  String name
           
protected  LinkedList<Node> nodes
           
protected  String value
           
 
Constructor Summary
Node()
           
 
Method Summary
 Node clone()
           
abstract  void execute(IndentWriter writer, JadeModel model, JadeTemplate template)
           
 Node getBlock()
           
 String getFileName()
           
 int getLineNumber()
           
 String getName()
           
 LinkedList<Node> getNodes()
           
 String getValue()
           
 boolean hasBlock()
           
 boolean hasNodes()
           
 Node pollNode()
           
 void push(Node node)
           
 void setBlock(Node block)
           
 void setFileName(String fileName)
           
 void setLineNumber(int lineNumber)
           
 void setName(String name)
           
 void setNodes(LinkedList<Node> nodes)
           
 void setValue(String value)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

protected LinkedList<Node> nodes

lineNumber

protected int lineNumber

name

protected String name

value

protected String value

block

protected Node block

fileName

protected String fileName
Constructor Detail

Node

public Node()
Method Detail

execute

public abstract void execute(IndentWriter writer,
                             JadeModel model,
                             JadeTemplate template)
                      throws JadeCompilerException
Throws:
JadeCompilerException

setLineNumber

public void setLineNumber(int lineNumber)

getLineNumber

public int getLineNumber()

setValue

public void setValue(String value)

getValue

public String getValue()

setName

public void setName(String name)

getName

public String getName()

push

public void push(Node node)

getNodes

public LinkedList<Node> getNodes()

setNodes

public void setNodes(LinkedList<Node> nodes)

pollNode

public Node pollNode()

hasNodes

public boolean hasNodes()

hasBlock

public boolean hasBlock()

getBlock

public Node getBlock()

setBlock

public void setBlock(Node block)

getFileName

public String getFileName()

setFileName

public void setFileName(String fileName)

clone

public Node clone()
           throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2013. All rights reserved.