| Package | Description |
|---|---|
| cetus.base.grammars | |
| cetus.hir |
| Modifier and Type | Method and Description |
|---|---|
Declaration |
NewCParser.declaration() |
Declaration |
NewCParser.parameterDeclaration() |
Declaration |
NewCParser.structDeclaration() |
Declaration |
NewCParser.typelessDeclaration() |
| Modifier and Type | Class and Description |
|---|---|
class |
AccessLevel
Deprecated.
|
class |
AnnotationDeclaration
AnnotationDeclaration is used for stand-alone annotations in non-executable
code section, e.g., in a TranslationUnit.
|
class |
ClassDeclaration
Represents a class, struct, or union.
|
class |
Enumeration
Enumeration represents a C or C++ enumeration.
|
class |
LinkageSpecification
This class is not supported
|
class |
Namespace
This class is not supported
|
class |
NamespaceAlias
This class is not supported
|
class |
PreAnnotation
Represents a text annotation (comment or pragma) or a list of keyed values.
|
class |
Procedure
Represents a function, subroutine, or method.
|
class |
TemplateDeclaration
This class is not supported
|
class |
UsingDeclaration
This class is not supported
|
class |
UsingDirective
This class is not supported
|
class |
VariableDeclaration
Represents a statement that introduces a new variable
or function prototype.
|
| Modifier and Type | Method and Description |
|---|---|
Declaration |
Declaration.clone()
Creates and returns a deep copy of this declaration.
|
Declaration |
IDExpression.findDeclaration()
Performs a symbol table lookup of this expression on the nearest
enclosing SymbolTable.
|
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.
|
static Declaration |
Tools.findSymbol(SymbolTable table,
java.lang.String name)
Deprecated.
|
static Declaration |
SymbolTools.findSymbol(SymbolTable table,
java.lang.String sname)
Searches for a symbol by String sname in the table.
|
Declaration |
VariableDeclarator.getDeclaration() |
Declaration |
TemplateDeclaration.getDeclaration() |
Declaration |
Symbol.getDeclaration()
Returns the parent declaration containing the symbol object.
|
Declaration |
PseudoSymbol.getDeclaration()
This operation is not supported.
|
Declaration |
ProcedureDeclarator.getDeclaration()
Returns the parent declaration of the procedure declarator if one exists.
|
Declaration |
Procedure.getDeclaration() |
Declaration |
NestedDeclarator.getDeclaration() |
Declaration |
DeclarationStatement.getDeclaration()
Returns the declaration part of the statement.
|
Declaration |
TranslationUnit.getFirstDeclaration()
Returns the first declaration that comes right after
header files.
|
static Declaration |
Tools.getLastDeclaration(Traversable t)
Deprecated.
|
static Declaration |
IRTools.getLastDeclaration(Traversable t)
Returns the last declaration that belongs to the given traverable object.
|
Declaration |
Procedure.getParameter(int index)
returns the parameter at specified index
|
Declaration |
Declarator.getParameter(int index)
Returns the parameter at specified index.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<Declaration> |
WhileLoop.getDeclarations() |
java.util.Set<Declaration> |
TranslationUnit.getDeclarations() |
java.util.Set<Declaration> |
SymbolTable.getDeclarations()
Returns the set of declarations declared within the symbol table object.
|
java.util.Set<Declaration> |
Procedure.getDeclarations() |
java.util.Set<Declaration> |
Namespace.getDeclarations() |
java.util.Set<Declaration> |
LinkageSpecification.getDeclarations() |
java.util.Set<Declaration> |
ForLoop.getDeclarations() |
java.util.Set<Declaration> |
DoLoop.getDeclarations() |
java.util.Set<Declaration> |
CompoundStatement.getDeclarations() |
java.util.Set<Declaration> |
ClassDeclaration.getDeclarations() |
java.util.List<Declaration> |
VariableDeclarator.getParameters() |
java.util.List<Declaration> |
ProcedureDeclarator.getParameters()
Returns the list of parameter declaration of the procedure declarator.
|
java.util.List<Declaration> |
NestedDeclarator.getParameters()
Returns the list of parameters if the declarator represents a function.
|
abstract java.util.List<Declaration> |
Declarator.getParameters()
Returns a List of Function Parameter
|
| Modifier and Type | Method and Description |
|---|---|
void |
WhileLoop.addDeclaration(Declaration decl) |
void |
TranslationUnit.addDeclaration(Declaration decl) |
void |
SymbolTable.addDeclaration(Declaration decl)
Add a declaration to the end of the set of declarations
and place the declared symbols in the symbol table.
|
void |
Procedure.addDeclaration(Declaration decl)
Adds a parameter declaration to the procedure.
|
void |
Namespace.addDeclaration(Declaration decl) |
void |
LinkageSpecification.addDeclaration(Declaration decl) |
void |
ForLoop.addDeclaration(Declaration decl) |
void |
DoLoop.addDeclaration(Declaration decl) |
void |
CompoundStatement.addDeclaration(Declaration decl)
Adds a declaration after the last declaration; this models the C
language's requirement that all declarations appear at the beginning of a
block.
|
void |
ClassDeclaration.addDeclaration(Declaration decl) |
void |
WhileLoop.addDeclarationAfter(Declaration ref,
Declaration decl) |
void |
TranslationUnit.addDeclarationAfter(Declaration ref,
Declaration decl) |
void |
SymbolTable.addDeclarationAfter(Declaration ref,
Declaration decl)
Add a declaration after the reference declaration.
|
void |
Procedure.addDeclarationAfter(Declaration ref,
Declaration decl)
Adds a new parameter declaration after the reference declaration.
|
void |
Namespace.addDeclarationAfter(Declaration ref,
Declaration decl) |
void |
LinkageSpecification.addDeclarationAfter(Declaration ref,
Declaration decl) |
void |
ForLoop.addDeclarationAfter(Declaration ref,
Declaration decl) |
void |
DoLoop.addDeclarationAfter(Declaration ref,
Declaration decl) |
void |
CompoundStatement.addDeclarationAfter(Declaration ref,
Declaration decl) |
void |
ClassDeclaration.addDeclarationAfter(Declaration ref,
Declaration decl) |
void |
WhileLoop.addDeclarationBefore(Declaration ref,
Declaration decl) |
void |
TranslationUnit.addDeclarationBefore(Declaration ref,
Declaration decl) |
void |
SymbolTable.addDeclarationBefore(Declaration ref,
Declaration decl)
Add a declaration before the reference declaration.
|
void |
Procedure.addDeclarationBefore(Declaration ref,
Declaration decl)
Adds a new parameter declaration before the reference declaration.
|
void |
Namespace.addDeclarationBefore(Declaration ref,
Declaration decl) |
void |
LinkageSpecification.addDeclarationBefore(Declaration ref,
Declaration decl) |
void |
ForLoop.addDeclarationBefore(Declaration ref,
Declaration decl) |
void |
DoLoop.addDeclarationBefore(Declaration ref,
Declaration decl) |
void |
CompoundStatement.addDeclarationBefore(Declaration ref,
Declaration decl) |
void |
ClassDeclaration.addDeclarationBefore(Declaration ref,
Declaration decl) |
void |
TranslationUnit.addDeclarationFirst(Declaration decl)
Adds a new declaration decl at the head of the child list.
|
void |
VariableDeclarator.addParameter(Declaration decl) |
void |
ProcedureDeclarator.addParameter(Declaration decl)
Inserts a new parameter declaration at the end of the parameter list.
|
void |
NestedDeclarator.addParameter(Declaration decl)
Inserts a new parameter declaration to the nested declarator.
|
abstract void |
Declarator.addParameter(Declaration decl)
Inserts a new child declaration to the parameter list.
|
void |
VariableDeclarator.addParameterAfter(Declaration ref,
Declaration decl) |
void |
ProcedureDeclarator.addParameterAfter(Declaration ref,
Declaration decl)
Inserts a new parameter declaration after the specified reference
parameter declaration.
|
void |
NestedDeclarator.addParameterAfter(Declaration ref,
Declaration decl)
Inserts a new parameter declaration to the nested declarator after the
reference parameter declaration.
|
abstract void |
Declarator.addParameterAfter(Declaration ref,
Declaration decl)
Inserts a new child declaration to the parameter list after the given
reference declaration.
|
void |
VariableDeclarator.addParameterBefore(Declaration ref,
Declaration decl) |
void |
ProcedureDeclarator.addParameterBefore(Declaration ref,
Declaration decl)
Inserts a new parameter declaration before the specified reference
parameter declaration.
|
void |
NestedDeclarator.addParameterBefore(Declaration ref,
Declaration decl)
Inserts a new parameter declaration to the nested declarator before the
reference parameter declaration.
|
abstract void |
Declarator.addParameterBefore(Declaration ref,
Declaration decl)
Inserts a new child declaration to the parameter list before the given
reference declaration.
|
static void |
Tools.addSymbols(SymbolTable table,
Declaration decl)
Deprecated.
|
static void |
SymbolTools.addSymbols(SymbolTable table,
Declaration decl)
Adds symbols to a symbol table and checks for duplicates.
|
boolean |
WhileLoop.containsDeclaration(Declaration decl) |
boolean |
TranslationUnit.containsDeclaration(Declaration decl) |
boolean |
SymbolTable.containsDeclaration(Declaration decl)
Checks if the symbol table contains the specified declaration.
|
boolean |
Procedure.containsDeclaration(Declaration decl) |
boolean |
Namespace.containsDeclaration(Declaration decl) |
boolean |
LinkageSpecification.containsDeclaration(Declaration decl) |
boolean |
ForLoop.containsDeclaration(Declaration decl) |
boolean |
DoLoop.containsDeclaration(Declaration decl) |
boolean |
CompoundStatement.containsDeclaration(Declaration decl) |
boolean |
ClassDeclaration.containsDeclaration(Declaration decl) |
| Constructor and Description |
|---|
DeclarationStatement(Declaration decl)
Create a declaration statement given a declaration.
|
LinkageSpecification(java.lang.String s,
Declaration decl)
Represents extern "s" decl.
|
TemplateDeclaration(java.util.List params,
Declaration decl) |