| Package | Description |
|---|---|
| cetus.application | |
| cetus.hir |
| Modifier and Type | Method and Description |
|---|---|
static IDExpression |
ChainTools.getIDExpression(Expression ex) |
static IDExpression |
ChainTools.getRefIDExpression(Expression ex,
Procedure proc)
Extract the variable ID from the input expression.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DestructorID
Represents the name of a C++ destructor.
|
class |
Identifier
Identifier represents a valid C identifier which has a matching
variable declarator.
|
class |
NameID
NameID is introduced to separate the uses of
Identifier for
better IR consistency. |
class |
OperatorID
C++ overloaded operator IDs.
|
class |
QualifiedID
This class is no longer supported
|
class |
TemplateID
This class is no longer supported
|
| Modifier and Type | Method and Description |
|---|---|
IDExpression |
IDExpression.clone() |
IDExpression |
DestructorID.getClassName() |
IDExpression |
VariableDeclarator.getID()
Returns the name ID of this variable declarator.
|
IDExpression |
ProcedureDeclarator.getID()
Returns the name ID of the procedure declarator.
|
IDExpression |
NestedDeclarator.getID()
Returns the name ID declared by the nested declarator.
|
abstract IDExpression |
Declarator.getID()
Returns the symbol declared by this declarator.
|
IDExpression |
UserSpecifier.getIDExpression() |
IDExpression |
Procedure.getName()
Returns the name ID of the procedure.
|
IDExpression |
Label.getName()
Returns the string for this Label
|
IDExpression |
Enumeration.getName()
Returns the name ID of this enumeration.
|
IDExpression |
ClassDeclaration.getName()
Returns the name ID of the class declaration
|
static IDExpression |
Tools.getUnusedID(SymbolTable table)
Deprecated.
|
static IDExpression |
SymbolTools.getUnusedID(SymbolTable table)
Returns a randomly-generated name that is not found in the table.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<IDExpression> |
VariableDeclaration.getDeclaredIDs() |
java.util.List<IDExpression> |
UsingDirective.getDeclaredIDs() |
java.util.List<IDExpression> |
UsingDeclaration.getDeclaredIDs() |
java.util.List<IDExpression> |
TemplateDeclaration.getDeclaredIDs() |
java.util.List<IDExpression> |
Procedure.getDeclaredIDs()
Returns the list of declared name IDs in the procedure.
|
java.util.List<IDExpression> |
PreAnnotation.getDeclaredIDs() |
java.util.List<IDExpression> |
NamespaceAlias.getDeclaredIDs() |
java.util.List<IDExpression> |
Namespace.getDeclaredIDs() |
java.util.List<IDExpression> |
LinkageSpecification.getDeclaredIDs() |
java.util.List<IDExpression> |
Enumeration.getDeclaredIDs() |
abstract java.util.List<IDExpression> |
Declaration.getDeclaredIDs()
Returns a list of name ID introduced by this declaration.
|
java.util.List<IDExpression> |
ClassDeclaration.getDeclaredIDs()
Returns the IDs declared by this class declaration; the returned list
contains one ID which gives the type and the name.
|
java.util.List<IDExpression> |
AnnotationDeclaration.getDeclaredIDs()
Returns an empty list - not used for an annotation declaration.
|
java.util.List<IDExpression> |
AccessLevel.getDeclaredIDs()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClassDeclaration.addBaseClass(IDExpression name)
Adds the name of the base class - not used in C
|
void |
ClassDeclaration.addBaseClass(Specifier access,
IDExpression name)
Adds the name of the base class with the specifier - not used in C
|
void |
ClassDeclaration.addBaseInterface(IDExpression name)
Adds the name of the interface - not used in C
|
Declaration |
WhileLoop.findSymbol(IDExpression name) |
Declaration |
TranslationUnit.findSymbol(IDExpression name) |
Declaration |
SymbolTable.findSymbol(IDExpression name)
Retrieves the declaration for a symbol, possibly searching
through parent symbol tables.
|
Declaration |
Procedure.findSymbol(IDExpression name) |
Declaration |
Namespace.findSymbol(IDExpression name) |
Declaration |
LinkageSpecification.findSymbol(IDExpression name) |
Declaration |
ForLoop.findSymbol(IDExpression name) |
Declaration |
DoLoop.findSymbol(IDExpression name) |
Declaration |
CompoundStatement.findSymbol(IDExpression name) |
Declaration |
ClassDeclaration.findSymbol(IDExpression name) |
static Declaration |
Tools.findSymbol(SymbolTable table,
IDExpression name)
Deprecated.
|
static Declaration |
SymbolTools.findSymbol(SymbolTable table,
IDExpression name)
Searches for a symbol by name in the table.
|
void |
Procedure.setName(IDExpression name)
Modifies the name of the procedure.
|
void |
Label.setName(IDExpression name)
Sets the name of the label with the specified name.
|
| Constructor and Description |
|---|
ClassDeclaration(ClassDeclaration.Key type,
IDExpression name)
Constructs an empty class declaration with the given type and name ID.
|
ClassDeclaration(ClassDeclaration.Key type,
IDExpression name,
boolean no_body)
Constructs a class declaration with the given type, name ID, and the flag
for forward declaration.
|
ClassDeclaration(java.util.List class_specs,
ClassDeclaration.Key type,
IDExpression name)
Constructs a class declaration from the given list of specifiers, type
keyword, and name ID.
|
DestructorID(IDExpression class_name) |
Enumeration(IDExpression name,
java.util.List declarators)
Creates an enumeration.
|
Label(IDExpression name)
Creates a new label with the specified name ID.
|
Namespace(IDExpression name)
Creates a named namespace.
|
NamespaceAlias(IDExpression name,
IDExpression original)
Create a namespace alias.
|
ProcedureDeclarator(IDExpression direct_decl,
java.util.List params)
Constructs a new procedure declarator with the given ID and the list of
parameters.
|
ProcedureDeclarator(IDExpression direct_decl,
java.util.List params,
java.util.List trailing_specs)
Consturcts a new procedure declarator with the given ID, list of
parameters, and the trailing specifiers.
|
ProcedureDeclarator(java.util.List leading_specs,
IDExpression direct_decl,
java.util.List params)
Constructs a new procedure declarator with the given leading specifiers,
the ID, and the list of parameters.
|
ProcedureDeclarator(java.util.List leading_specs,
IDExpression direct_decl,
java.util.List params,
java.util.List trailing_specs,
ExceptionSpecification espec)
Constructs a new procedure declarator with the given leading specifiers,
the ID, the trailing specifiers, and the exception specification.
|
UserSpecifier(IDExpression usertype) |
UsingDeclaration(IDExpression expr) |
VariableDeclarator(IDExpression direct_decl)
Constructs a new VariableDeclarator with the given ID.
|
VariableDeclarator(IDExpression direct_decl,
java.util.List trailing_specs)
Constructs a new variable declarator with the given ID and the trailing
specifiers.
|
VariableDeclarator(IDExpression direct_decl,
Specifier spec)
Constructs a new variable declarator with the given name ID and the
trailing specifier.
|
VariableDeclarator(java.util.List leading_specs,
IDExpression direct_decl)
Constructs a new variable declarator with the given leading specifiers and
the name ID.
|
VariableDeclarator(java.util.List leading_specs,
IDExpression direct_decl,
java.util.List trailing_specs)
Constructs a new variable declarator with the given leading specifiers,
the name ID, and the trailing specifiers.
|
VariableDeclarator(Specifier spec,
IDExpression direct_decl)
Constructs a new variable declarator with the given leading specifier and
the name ID.
|