entities
Class GotoExpression

java.lang.Object
  extended byentities.Expression
      extended byentities.GotoExpression
All Implemented Interfaces:
ScopeManager

public class GotoExpression
extends Expression

The class GotoExpression represents a goto expression


Field Summary
 
Fields inherited from class entities.Expression
fCast, fFile, fLBracketPosition, fOperator, fParentScope, fPosition, fPreviousExpression, fRBracketPosition, fToTrace, fTypeOfCast, SEPARATORS
 
Constructor Summary
GotoExpression(ScopeManager parentScope)
           
 
Method Summary
 void computeType(ScopeInfo scopeInfo, java.lang.String indentation)
          It is empty
 java.lang.String getLabel()
           
 java.lang.String getString()
           
 void print(java.lang.String indentation)
          Print all information
 void setLabel(java.lang.String label)
          The parameter label is used to represent the label found after the "goto" keyword
 
Methods inherited from class entities.Expression
addClass, addClassHeaderFile, addEnumerator, addExpression, addExternalField, addExternalMethod, addField, addFriendClass, addFriendFunction, addFriendMethod, addFunction, addGeneralization, addMethod, addNameSpace, addType, addUserType, addVariable, cleanType, fillName, fillNameNew, findVariableType, getAllocationType, getCast, getCastType, getClassContext, getContainingMethod, getContext, getContextNew, getCurrentMethod, getFile, getLBracketPosition, getName, getOperator, getOperators, getParent, getParentScope, getPosition, getPreviousExpression, getRBracketPosition, getType, getTypeOfCast, propagateParentScope, resolveType, setCast, setFile, setLBracketPosition, setOperator, setParentScope, setPosition, setPreviousExpression, setRBracketPosition, setTypeOfCast
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GotoExpression

public GotoExpression(ScopeManager parentScope)
Method Detail

getLabel

public java.lang.String getLabel()
Returns:
the label found after "goto"

Ex: goto AAAA

In this case it returns "AAAA"


getString

public java.lang.String getString()
Overrides:
getString in class Expression
Returns:
the representation of the Expression as a String (it is not a thorough reconstruction)

setLabel

public void setLabel(java.lang.String label)
The parameter label is used to represent the label found after the "goto" keyword


computeType

public void computeType(ScopeInfo scopeInfo,
                        java.lang.String indentation)
It is empty

Overrides:
computeType in class Expression

print

public void print(java.lang.String indentation)
Print all information

Specified by:
print in interface ScopeManager
Overrides:
print in class Expression