FileDocCategorySizeDatePackage
StringLiteralNode.javaAPI DocGlassfish v2 API2847Tue May 22 16:54:40 BST 2007oracle.toplink.essentials.internal.parsing

StringLiteralNode

public class StringLiteralNode extends LiteralNode
INTERNAL

Purpose: Represent a String literal

Responsibilities:

  • Generate the correct expression for the string
author
Jon Driscoll and Joel Lucuik
since
TopLink 4.0

Fields Summary
Constructors Summary
public StringLiteralNode()
Return a new StringLiteralNode

        super();
    
public StringLiteralNode(String theString)
Return a new StringLiteralNode with the internal string set to the passed value

        super();
        setLiteral(theString);
    
Methods Summary
public voidvalidate(oracle.toplink.essentials.internal.parsing.ParseTreeContext context)
INTERNAL Validate node and calculate its type.

        TypeHelper typeHelper = context.getTypeHelper();
        setType(typeHelper.getStringType());