blob: 0ba5ecb118b1525dbf8f21d01a5fffebb0576d0f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
/*
*/
package org.eclipse.jem.internal.instantiation;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>String Literal</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* Representation of a string literal, e.g. "asdf".
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.jem.internal.instantiation.PTStringLiteral#getEscapedValue <em>Escaped Value</em>}</li>
* <li>{@link org.eclipse.jem.internal.instantiation.PTStringLiteral#getLiteralValue <em>Literal Value</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.jem.internal.instantiation.InstantiationPackage#getPTStringLiteral()
* @model
* @generated
*/
public interface PTStringLiteral extends PTExpression{
/**
* Returns the value of the '<em><b>Escaped Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* This is the escaped string. In other words the literal exactly as it is in the java file. E.g. "ab" or "c\r". Including the surrounding quotes themselves.
* <!-- end-model-doc -->
* @return the value of the '<em>Escaped Value</em>' attribute.
* @see #setEscapedValue(String)
* @see org.eclipse.jem.internal.instantiation.InstantiationPackage#getPTStringLiteral_EscapedValue()
* @model
* @generated
*/
String getEscapedValue();
/**
* Sets the value of the '{@link org.eclipse.jem.internal.instantiation.PTStringLiteral#getEscapedValue <em>Escaped Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Escaped Value</em>' attribute.
* @see #getEscapedValue()
* @generated
*/
void setEscapedValue(String value);
/**
* Returns the value of the '<em><b>Literal Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The actual string without the quotes. Escape are evaluated and turned into their character value. This is a transient field. If not set when created when queried it will create it. Typically it will be set when created from an AST node since the node already has evaluated it.
* <!-- end-model-doc -->
* @return the value of the '<em>Literal Value</em>' attribute.
* @see #setLiteralValue(String)
* @see org.eclipse.jem.internal.instantiation.InstantiationPackage#getPTStringLiteral_LiteralValue()
* @model transient="true"
* @generated
*/
String getLiteralValue();
/**
* Sets the value of the '{@link org.eclipse.jem.internal.instantiation.PTStringLiteral#getLiteralValue <em>Literal Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Literal Value</em>' attribute.
* @see #getLiteralValue()
* @generated
*/
void setLiteralValue(String value);
} // StringLiteral