com.google.caja.parser.js
Class Noop
java.lang.Object
com.google.caja.parser.AbstractParseTreeNode
com.google.caja.parser.js.AbstractStatement
com.google.caja.parser.js.Noop
- All Implemented Interfaces:
- JsonMLCompatible, Statement, MutableParseTreeNode, ParseTreeNode, MessagePart, Renderable, java.lang.Cloneable
public final class Noop
- extends AbstractStatement
- Author:
- mikesamuel@gmail.com
Methods inherited from class com.google.caja.parser.AbstractParseTreeNode |
acceptPostOrder, acceptPreOrder, appendChild, children, childrenAs, childrenChanged, childrenPart, clone, createMutation, equals, format, formatSelf, formatTree, formatTree, getAttributes, getComments, getFilePosition, hashCode, insertBefore, removeChild, replaceChild, setComments, setFilePosition, toString, toStringDeep, toStringDeep |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Noop
@ParseTreeNode.ReflectiveCtor
public Noop(FilePosition p,
java.lang.Void value,
java.util.List<? extends Statement> children)
- Parameters:
value
- unused. This ctor is provided for reflection.
Noop
public Noop(FilePosition pos)
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interface ParseTreeNode
- Specified by:
getValue
in class AbstractParseTreeNode
- Returns:
- null or a value with subclass specific meaning which encapsulates
all parsed state separate from the children.
render
public void render(RenderContext rc)
- Description copied from interface:
Renderable
- Output the textual form to
r.getOut()
.
hasHangingConditional
public boolean hasHangingConditional()
- Description copied from interface:
Statement
- True if the rendered form of the statement would consume more tokens if
parsed followed by the tokens "else" and ";".
isTerminal
public boolean isTerminal()
- Description copied from class:
AbstractStatement
- Does the rendered form end with a close curly bracket?
- Specified by:
isTerminal
in interface Statement
- Overrides:
isTerminal
in class AbstractStatement
toJsonML
public com.google.javascript.jscomp.jsonml.JsonML toJsonML()
- Description copied from interface:
JsonMLCompatible
- Creates a
JsonML representation of this AST.
Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0