Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

add(SyntaxNode<Tag>) - Method in class ru.ispras.castle.ast.basis.SymbolTable
Adds an item into the symbol table.
add(SyntaxNode<Tag>) - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Adds a child to the node.
addAll(Collection<SyntaxNode<Tag>>) - Method in class ru.ispras.castle.ast.basis.SymbolTable
Adds items into the symbol table.
addIndex(Node) - Method in class ru.ispras.castle.ast.RangedVariable
Add the specified node as index for this object.
addPath(String) - Method in class ru.ispras.castle.antlr.IncludeFileFinder
 
addPaths(String) - Method in class ru.ispras.castle.antlr.IncludeFileFinder
 
Assignment<Tag extends java.lang.Enum<Tag>> - Class in ru.ispras.castle.ast
Assignment statement.
Assignment(Class<Tag>, Tag) - Constructor for class ru.ispras.castle.ast.Assignment
Constructs an assignment node.
Assignment(Class<Tag>, Tag, RangedVariable, Node) - Constructor for class ru.ispras.castle.ast.Assignment
Constructs object with the specified target variable and value expression.
Assignment(Class<Tag>, Tag, NodeVariable, Node) - Constructor for class ru.ispras.castle.ast.Assignment
Constructs object with the specified target non-ranged variable and value expression.

B

BAR - Static variable in class ru.ispras.castle.util.Logger
 
border(IntegerRange) - Method in class ru.ispras.castle.ast.IntegerRange
Checks whether this range borders on the given one (rhs).
build(STGroup) - Method in interface ru.ispras.castle.codegen.StringTemplateBuilder
` * Performs initialization of the template for the target file based on templates described in the corresponding template group.

C

clone() - Method in class ru.ispras.castle.ast.Assignment
 
compareTo(IntegerRange) - Method in class ru.ispras.castle.ast.IntegerRange
Compares this object to the specified object.
contains(IntegerRange) - Method in class ru.ispras.castle.ast.IntegerRange
Checks whether this range contains (as a subset) the given one (rhs).
contains(BigInteger) - Method in class ru.ispras.castle.ast.IntegerRange
Checks whether this range contains the given point.
containsAttribute(String) - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Checks whether the node contains the given attribute.
copy(File, File) - Static method in class ru.ispras.castle.util.FileUtils
 
copyDirectory(File, File) - Static method in class ru.ispras.castle.util.FileUtils
 
copyFile(File, File) - Static method in class ru.ispras.castle.util.FileUtils
 

D

debug(String, Object...) - Static method in class ru.ispras.castle.util.Logger
 
debugBar() - Static method in class ru.ispras.castle.util.Logger
 
debugHeader(String, Object...) - Static method in class ru.ispras.castle.util.Logger
 
debugHeader(String) - Static method in class ru.ispras.castle.util.Logger
 
deepCopy() - Method in class ru.ispras.castle.ast.Range
Creates a deep copy of the current object.
deepCopy() - Method in class ru.ispras.castle.ast.RangedVariable
Creates a deep copy of the current object.
divide(Collection<IntegerRange>) - Static method in class ru.ispras.castle.ast.IntegerRange
Transforms the collection of ranges to the list of disjoint ranges.

E

equals(Object) - Method in class ru.ispras.castle.ast.Assignment
 
equals(Object) - Method in class ru.ispras.castle.ast.IntegerRange
 
equals(Object) - Method in class ru.ispras.castle.ast.Range
 
equals(Object) - Method in class ru.ispras.castle.ast.RangedVariable
 
error(String, Object...) - Static method in class ru.ispras.castle.util.Logger
 
ErrorHandler<Tag extends java.lang.Enum<Tag>> - Interface in ru.ispras.castle.ast.basis
ErrorHandler is a base interface of an error handler.
exception(Throwable) - Static method in class ru.ispras.castle.util.Logger
 

F

FileGenerator - Interface in ru.ispras.castle.codegen
The FileGenerator interface is used to manipulate with code file generators.
FileGeneratorStringTemplate - Class in ru.ispras.castle.codegen
The FileGeneratorStringTemplate class generates source code files on the basis of StringTemplates descriptions.
FileGeneratorStringTemplate(String, String[], StringTemplateBuilder) - Constructor for class ru.ispras.castle.codegen.FileGeneratorStringTemplate
Constructs a code generator parameterized with a hierarchy template groups, with a builder that will initialize the code template and with the full name to the target output file.
FileUtils - Class in ru.ispras.castle.util
The FileUtils class provides utility methods to work with files.
find(String) - Method in class ru.ispras.castle.ast.basis.SymbolTable
Returns an item of the symbol table with the given name.
find(String) - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Searches for a child with the given name in the current scope.
findRecursively(String) - Method in class ru.ispras.castle.ast.basis.SymbolTable
Returns an item of the symbol table (or the parent tables) with the given name
findRecursively(String) - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Searches for a child with the given name in the current and upper scopes.

G

generate() - Method in interface ru.ispras.castle.codegen.FileGenerator
Runs generation of a code file.
generate() - Method in class ru.ispras.castle.codegen.FileGeneratorStringTemplate
Generates the target file.
generateFile(String, String[], StringTemplateBuilder) - Static method in class ru.ispras.castle.codegen.FileGeneratorStringTemplate
Generates a file by the specified template.
getAttribute(String) - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Returns the attribute value.
getChildren() - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Returns the collection of the children.
getChildren(Tag) - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Returns the collection of the children of the given tag.
getDefines() - Method in class ru.ispras.castle.ast.Assignment
 
getDefines() - Method in class ru.ispras.castle.ast.RangedVariable
 
getDefines() - Method in interface ru.ispras.castle.ast.UseDef
Returns a set of defined variables.
getFileDir(String) - Static method in class ru.ispras.castle.util.FileUtils
 
getFileExtension(String) - Static method in class ru.ispras.castle.util.FileUtils
 
getHigh() - Method in class ru.ispras.castle.ast.Range
Returns high index.
getIndices() - Method in class ru.ispras.castle.ast.RangedVariable
Returns the sequence of object's indices.
getIntegerRange() - Method in class ru.ispras.castle.ast.RangedVariable
Returns the integer range of this object.
getKind() - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Returns the kind of the node.
getLastParentToken() - Method in class ru.ispras.castle.antlr.TokenSourceStack
 
getLow() - Method in class ru.ispras.castle.ast.Range
Returns low index.
getMax() - Method in class ru.ispras.castle.ast.IntegerRange
Returns the upper bound of the range.
getMin() - Method in class ru.ispras.castle.ast.IntegerRange
Returns the lower bound of the range.
getName() - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Returns the name of the node.
getNormalizedPath(String) - Static method in class ru.ispras.castle.util.FileUtils
 
getParent() - Method in class ru.ispras.castle.ast.basis.SymbolTable
Returns the parent symbol table.
getParent() - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Returns the parent of the node or null if the node is a root.
getRange() - Method in class ru.ispras.castle.ast.RangedVariable
Returns range.
getResourceUrl(String) - Static method in class ru.ispras.castle.util.SysUtils
Returns an URL for the specified resource file stored in microtesk.jar.
getSeparatedDescription(ExprTreePrinter, String) - Method in class ru.ispras.castle.ast.Assignment
Returns this assignment description that is presented in format of the specified printer with the specified separator.
getShortFileName(String) - Static method in class ru.ispras.castle.util.FileUtils
 
getShortFileNameNoExt(String) - Static method in class ru.ispras.castle.util.FileUtils
 
getSource() - Method in class ru.ispras.castle.antlr.TokenSourceStack
 
getSourceName() - Method in class ru.ispras.castle.antlr.TokenSourceStack
 
getSupportEmail() - Static method in class ru.ispras.castle.util.Logger
 
getTag() - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Returns the tag of the node.
getTagType() - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Returns the type of the node tag.
getTarget() - Method in class ru.ispras.castle.ast.Assignment
Returns defined ranged variable.
getUsedVariableNames() - Method in class ru.ispras.castle.ast.Assignment
Returns names of variables that are used in this object.
getUses() - Method in class ru.ispras.castle.ast.Assignment
 
getUses() - Method in class ru.ispras.castle.ast.RangedVariable
 
getUses() - Method in interface ru.ispras.castle.ast.UseDef
Returns a set of used variables.
getValue() - Method in class ru.ispras.castle.ast.Assignment
Returns value expression.
getVariable() - Method in class ru.ispras.castle.ast.Assignment
Returns defined variable.
getVariable() - Method in class ru.ispras.castle.ast.RangedVariable
Returns variable.
getVariableName() - Method in class ru.ispras.castle.ast.RangedVariable
Returns variable name.
getVariables() - Method in class ru.ispras.castle.ast.Range
Returns variables that are used in this object.

H

handle(SyntaxNode<Tag>, SyntaxNode<Tag>) - Method in interface ru.ispras.castle.ast.basis.ErrorHandler
Handles an error.
hashCode() - Method in class ru.ispras.castle.ast.Assignment
 
hashCode() - Method in class ru.ispras.castle.ast.IntegerRange
 
hashCode() - Method in class ru.ispras.castle.ast.Range
 
hashCode() - Method in class ru.ispras.castle.ast.RangedVariable
 
hasName() - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Checks whether the node has name.
hasName() - Method in enum ru.ispras.castle.ast.basis.SyntaxNode.Kind
 
hasScope() - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Checks whether the node has scope.
hasScope() - Method in enum ru.ispras.castle.ast.basis.SyntaxNode.Kind
 
hasSources() - Method in class ru.ispras.castle.antlr.TokenSourceStack
 

I

IncludeFileFinder - Class in ru.ispras.castle.antlr
IncludeFileFinder implements logic for searching include files.
IncludeFileFinder() - Constructor for class ru.ispras.castle.antlr.IncludeFileFinder
 
indexed() - Method in class ru.ispras.castle.ast.RangedVariable
Checks whether this object has indices.
IntegerRange - Class in ru.ispras.castle.ast
This class represents a non-empty integer range (interval).
IntegerRange(BigInteger, BigInteger) - Constructor for class ru.ispras.castle.ast.IntegerRange
Constructs a range with the given lower (min) and upper (max) bounds.
IntegerRange.RangePointType - Enum in ru.ispras.castle.ast
This enumeration contains types of range bounds.
intersect(IntegerRange) - Method in class ru.ispras.castle.ast.IntegerRange
Returns an intersection range for this one and the specified one.
isConstantRange() - Method in class ru.ispras.castle.ast.Range
Checks whether this range has constant borders.
isDebug() - Static method in class ru.ispras.castle.util.Logger
 
isInitialized() - Method in class ru.ispras.castle.ast.Assignment
Checks rather all the object's fields are not null.
isIntegerRange() - Method in class ru.ispras.castle.ast.Range
Checks whether this object is a range of integer values.
isRootSource() - Method in class ru.ispras.castle.antlr.TokenSourceStack
 
items() - Method in class ru.ispras.castle.ast.basis.SymbolTable
Returns the collection of items.
items(Tag) - Method in class ru.ispras.castle.ast.basis.SymbolTable
Returns the collection of items with the given tag.
items(EnumSet<Tag>) - Method in class ru.ispras.castle.ast.basis.SymbolTable
Returns the collection of items whose tags belong to the given set.

L

lastParentToken - Variable in class ru.ispras.castle.antlr.TokenSourceStack.TokenSourceEntry
The latest token of the parent stream.
LINE_WIDTH - Static variable in class ru.ispras.castle.util.Logger
 
Logger - Class in ru.ispras.castle.util
 
Logger() - Constructor for class ru.ispras.castle.util.Logger
 
Logger.EventType - Enum in ru.ispras.castle.util
 
Logger.Listener - Interface in ru.ispras.castle.util
 

M

message(String, Object...) - Static method in class ru.ispras.castle.util.Logger
 
minus(IntegerRange) - Method in class ru.ispras.castle.ast.IntegerRange
Returns the list of ranges representing the difference between this range and the given one.

N

newFile(String, String, String) - Static method in class ru.ispras.castle.util.FileUtils
 
newFile(String) - Static method in class ru.ispras.castle.util.FileUtils
 
newPrintWriter(String, String, String) - Static method in class ru.ispras.castle.util.FileUtils
 
nextToken() - Method in class ru.ispras.castle.antlr.TokenSourceStack
 

O

onBegin(SyntaxNode<Tag>) - Method in interface ru.ispras.castle.ast.basis.SyntaxNodeVisitor
Called before traversing the child nodes.
onEnd(SyntaxNode<Tag>) - Method in interface ru.ispras.castle.ast.basis.SyntaxNodeVisitor
Called when the child nodes have been traversed.
onEventLogged(Logger.EventType, String) - Method in interface ru.ispras.castle.util.Logger.Listener
 
openFile(String) - Method in class ru.ispras.castle.antlr.IncludeFileFinder
 
overlaps(IntegerRange) - Method in class ru.ispras.castle.ast.IntegerRange
Checks whether this range overlaps with the given one (rhs).

P

pop() - Method in class ru.ispras.castle.antlr.TokenSourceStack
 
push(TokenSource) - Method in class ru.ispras.castle.antlr.TokenSourceStack
 

R

Range - Class in ru.ispras.castle.ast
Pair of values.
Range(Node, Node) - Constructor for class ru.ispras.castle.ast.Range
Default constructor.
Range(int, int) - Constructor for class ru.ispras.castle.ast.Range
Creates range with the specified low and high indices.
Range(IntegerRange) - Constructor for class ru.ispras.castle.ast.Range
Constructs a copy of the specified range.
ranged() - Method in class ru.ispras.castle.ast.Assignment
Checks rather this object contains a defining to ranged variable.
ranged() - Method in class ru.ispras.castle.ast.RangedVariable
Checks whether this object has sub-range.
RangedVariable - Class in ru.ispras.castle.ast
Variable or it's sub-part restricted by the specified range and indices.
RangedVariable(NodeVariable) - Constructor for class ru.ispras.castle.ast.RangedVariable
Constructs object with the specified variable.
RangedVariable(NodeVariable, Range) - Constructor for class ru.ispras.castle.ast.RangedVariable
Constructs object with the specified variable and it's range.
RangedVariable(NodeVariable, List<Node>) - Constructor for class ru.ispras.castle.ast.RangedVariable
Creates object with the specified variable and it's range.
RangedVariable(NodeVariable, Range, List<Node>) - Constructor for class ru.ispras.castle.ast.RangedVariable
Creates object with the specified parameters.
ru.ispras.castle.antlr - package ru.ispras.castle.antlr
 
ru.ispras.castle.ast - package ru.ispras.castle.ast
 
ru.ispras.castle.ast.basis - package ru.ispras.castle.ast.basis
 
ru.ispras.castle.codegen - package ru.ispras.castle.codegen
 
ru.ispras.castle.util - package ru.ispras.castle.util
 

S

select(Collection<IntegerRange>, IntegerRange) - Static method in class ru.ispras.castle.ast.IntegerRange
Selects all ranges from the the given collection that are within the given bounds.
setAttribute(String, Object) - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Sets the attribute value.
setAttributes(Map<String, Object>) - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Sets the attribute values.
setDebug(boolean) - Static method in class ru.ispras.castle.util.Logger
 
setIndices(List<Node>) - Method in class ru.ispras.castle.ast.RangedVariable
Sets new sequence on indices.
setLastParentToken(Token) - Method in class ru.ispras.castle.antlr.TokenSourceStack
 
setLastParentToken(int, Token) - Method in class ru.ispras.castle.antlr.TokenSourceStack
 
setListener(Logger.Listener) - Static method in class ru.ispras.castle.util.Logger
 
setName(String) - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Sets the name of the node.
setParent(SymbolTable<Tag>) - Method in class ru.ispras.castle.ast.basis.SymbolTable
Sets the parent symbol table.
setParent(SyntaxNode<Tag>) - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Sets the parent of the node.
setRange(Range) - Method in class ru.ispras.castle.ast.RangedVariable
Sets new range.
setRange(Node, Node) - Method in class ru.ispras.castle.ast.RangedVariable
Sets new range from the pair of the specified nodes.
setRedefinitionHandler(ErrorHandler<Tag>) - Method in class ru.ispras.castle.ast.basis.SymbolTable
Sets the redefinition handler.
setRedefinitionHandler(ErrorHandler<Tag>) - Method in class ru.ispras.castle.ast.basis.SyntaxNode
Sets the redefinition handler.
setSupportEmail(String) - Static method in class ru.ispras.castle.util.Logger
 
setValue(Node) - Method in class ru.ispras.castle.ast.Assignment
Sets new value expression.
setVariable(RangedVariable) - Method in class ru.ispras.castle.ast.Assignment
Sets the specified variable as objects' target.
shift(int) - Method in class ru.ispras.castle.ast.IntegerRange
Returns the shifted variant of this range ([min + value, max + value]).
size() - Method in class ru.ispras.castle.ast.IntegerRange
Returns the size of the range.
source - Variable in class ru.ispras.castle.antlr.TokenSourceStack.TokenSourceEntry
 
start() - Method in class ru.ispras.castle.ast.basis.SyntaxTreeWalker
Starts traversal (depth-first exploration).
StringTemplateBuilder - Interface in ru.ispras.castle.codegen
The StringTemplateBuilder interface is a base interface for classes that are responsible for initialization of StringTemplate objects.
SymbolTable<Tag extends java.lang.Enum<Tag>> - Class in ru.ispras.castle.ast.basis
SymbolTable implements a simple symbol table based on Java hash tables.
SymbolTable() - Constructor for class ru.ispras.castle.ast.basis.SymbolTable
 
SyntaxNode<Tag extends java.lang.Enum<Tag>> - Class in ru.ispras.castle.ast.basis
SyntaxNode represents a basic node of an abstract syntax tree (AST).
SyntaxNode(Class<Tag>, Tag, EnumSet<Tag>, SyntaxNode.Kind, String, SyntaxNode<Tag>) - Constructor for class ru.ispras.castle.ast.basis.SyntaxNode
Creates an AST node.
SyntaxNode(Class<Tag>, Tag, EnumSet<Tag>, SyntaxNode.Kind, SyntaxNode<Tag>) - Constructor for class ru.ispras.castle.ast.basis.SyntaxNode
 
SyntaxNode(Class<Tag>, Tag, EnumSet<Tag>, SyntaxNode.Kind) - Constructor for class ru.ispras.castle.ast.basis.SyntaxNode
 
SyntaxNode(Class<Tag>, Tag, SyntaxNode.Kind) - Constructor for class ru.ispras.castle.ast.basis.SyntaxNode
 
SyntaxNode(SyntaxNode<Tag>) - Constructor for class ru.ispras.castle.ast.basis.SyntaxNode
 
SyntaxNode.Kind - Enum in ru.ispras.castle.ast.basis
SyntaxNode.Kind classifies nodes according to the has-name and has-scope flags.
SyntaxNodeVisitor<Tag extends java.lang.Enum<Tag>> - Interface in ru.ispras.castle.ast.basis
SyntaxNodeVisitor is a base interface of a SyntaxNode visitor.
SyntaxNodeVisitor.Result - Enum in ru.ispras.castle.ast.basis
SyntaxNodeVisitor.Result contains possible visitor results.
SyntaxTreeWalker<Tag extends java.lang.Enum<Tag>> - Class in ru.ispras.castle.ast.basis
SyntaxTreeWalker implements a walker that traverses an abstract syntax tree.
SyntaxTreeWalker(SyntaxNode<Tag>, SyntaxNodeVisitor<Tag>) - Constructor for class ru.ispras.castle.ast.basis.SyntaxTreeWalker
Constructs a tree walker.
SysUtils - Class in ru.ispras.castle.util
The SysUtils class provides utility methods to interact with the environment.
SysUtils() - Constructor for class ru.ispras.castle.util.SysUtils
 

T

toIntegerRange() - Method in class ru.ispras.castle.ast.Range
Converts this object to integer range, if fails, returns null.
TokenSourceEntry(TokenSource) - Constructor for class ru.ispras.castle.antlr.TokenSourceStack.TokenSourceEntry
 
TokenSourceStack - Class in ru.ispras.castle.antlr
Composite token source for hierarchically organized sub-sources.
TokenSourceStack() - Constructor for class ru.ispras.castle.antlr.TokenSourceStack
 
TokenSourceStack.TokenSourceEntry - Class in ru.ispras.castle.antlr
 
toNode() - Method in class ru.ispras.castle.ast.RangedVariable
Returns the syntax node that is equivalent to this object.
toString() - Method in class ru.ispras.castle.ast.Assignment
 
toString() - Method in class ru.ispras.castle.ast.IntegerRange
 
toString() - Method in class ru.ispras.castle.ast.Range
 
toString() - Method in class ru.ispras.castle.ast.RangedVariable
 

U

UseDef - Interface in ru.ispras.castle.ast
Object that uses or/and defines variables.

V

valueOf(String) - Static method in enum ru.ispras.castle.ast.basis.SyntaxNode.Kind
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ru.ispras.castle.ast.basis.SyntaxNodeVisitor.Result
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ru.ispras.castle.ast.IntegerRange.RangePointType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ru.ispras.castle.util.Logger.EventType
Returns the enum constant of this type with the specified name.
values() - Static method in enum ru.ispras.castle.ast.basis.SyntaxNode.Kind
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ru.ispras.castle.ast.basis.SyntaxNodeVisitor.Result
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ru.ispras.castle.ast.IntegerRange.RangePointType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ru.ispras.castle.util.Logger.EventType
Returns an array containing the constants of this enum type, in the order they are declared.

W

warning(String, Object...) - Static method in class ru.ispras.castle.util.Logger
 
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links