public abstract class Node extends Object implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected Node |
block |
protected int |
column |
protected String |
fileName |
protected int |
lineNumber |
protected String |
name |
protected LinkedList<Node> |
nodes |
protected String |
value |
| Constructor and Description |
|---|
Node() |
| Modifier and Type | Method and Description |
|---|---|
Node |
clone() |
abstract void |
execute(IndentWriter writer,
PugModel model,
PugTemplate template) |
Node |
getBlock() |
int |
getColumn() |
String |
getFileName() |
int |
getLineNumber() |
String |
getName() |
LinkedList<Node> |
getNodes() |
String |
getValue() |
boolean |
hasBlock() |
boolean |
hasNodes() |
protected boolean |
isTextNode(Node node) |
Node |
pollNode() |
void |
push(Node node) |
void |
setBlock(Node block) |
void |
setColumn(int startColumn) |
void |
setFileName(String fileName) |
void |
setLineNumber(int lineNumber) |
void |
setName(String name) |
void |
setNodes(LinkedList<Node> nodes) |
void |
setValue(String value) |
protected LinkedList<Node> nodes
protected int lineNumber
protected int column
protected String name
protected String value
protected Node block
protected String fileName
protected boolean isTextNode(Node node)
public abstract void execute(IndentWriter writer, PugModel model, PugTemplate template) throws PugCompilerException
PugCompilerExceptionpublic void setLineNumber(int lineNumber)
public int getLineNumber()
public void setValue(String value)
public String getValue()
public void setName(String name)
public String getName()
public void push(Node node)
public LinkedList<Node> getNodes()
public void setNodes(LinkedList<Node> nodes)
public Node pollNode()
public boolean hasNodes()
public boolean hasBlock()
public Node getBlock()
public void setBlock(Node block)
public String getFileName()
public void setFileName(String fileName)
public Node clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void setColumn(int startColumn)
public int getColumn()
Copyright © 2024. All rights reserved.