com.ibm.etools.cobol.application.model.cobol
Interface LiteralTypedValue

All Superinterfaces:
ASTNode, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier

public interface LiteralTypedValue
extends ASTNode

A representation of a literal value. The value itself is a string, and the value type specifies the type of literal.

The following features are supported:

See Also:
COBOLPackage.getLiteralTypedValue()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 java.lang.String getVal()
          Returns the value of the 'Val' attribute.
 LiteralType getValType()
          Returns the value of the 'Val Type' attribute.
 boolean isIsAll()
          Returns the value of the 'Is All' attribute.
 void setIsAll(boolean value)
          Sets the value of the 'Is All' attribute.
 void setVal(java.lang.String value)
          Sets the value of the 'Val' attribute.
 void setValType(LiteralType value)
          Sets the value of the 'Val Type' attribute.
 
Methods inherited from interface com.ibm.etools.cobol.application.model.cobol.ASTNode
getBeginColumn, getBeginFile, getBeginLine, getEndColumn, getEndFile, getEndLine, getParent, getTag, setBeginColumn, setBeginFile, setBeginLine, setEndColumn, setEndFile, setEndLine, setParent, setTag
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Field Detail

copyright

static final java.lang.String copyright

See Also:
Constant Field Values
Method Detail

getVal

java.lang.String getVal()
Returns the value of the 'Val' attribute.

The value is the string representation of the literal. For string literals, the beginning and ending quotes are included in the value.

Returns:
the value of the 'Val' attribute.
See Also:
setVal(String), COBOLPackage.getLiteralTypedValue_Val()

setVal

void setVal(java.lang.String value)
Sets the value of the 'Val' attribute.

Parameters:
value - the new value of the 'Val' attribute.
See Also:
getVal()

getValType

LiteralType getValType()
Returns the value of the 'Val Type' attribute. The literals are from the enumeration LiteralType.

The value is the type of literal.

Returns:
the value of the 'Val Type' attribute.
See Also:
LiteralType, setValType(LiteralType), COBOLPackage.getLiteralTypedValue_ValType()

setValType

void setValType(LiteralType value)
Sets the value of the 'Val Type' attribute.

Parameters:
value - the new value of the 'Val Type' attribute.
See Also:
LiteralType, getValType()

isIsAll

boolean isIsAll()
Returns the value of the 'Is All' attribute.

The value is true if the keyword ALL is specified before the literal; false otherwise.

Returns:
the value of the 'Is All' attribute.
See Also:
setIsAll(boolean), COBOLPackage.getLiteralTypedValue_IsAll()

setIsAll

void setIsAll(boolean value)
Sets the value of the 'Is All' attribute.

Parameters:
value - the new value of the 'Is All' attribute.
See Also:
isIsAll()