* @param literalNode - AST node containing JS literal declaration
* @throws InvalidLiteralNode - Node is not correct literal type
*/
public BaseLiteralNode(Node literalNode) throws InvalidLiteralNode {
if (literalNode != null && getLiteralType() != literalNode.getType()) {
throw new InvalidLiteralNode();
}
this.literalNode = literalNode;
}