antlraux package
v0.2.1
A C D E F G H I L M N O P R S T V

A

addChildLeft(AST) - Method in class antlraux.util.LexInfoAST
Similar to AST.addChild(AST), but this one inserts the child at the beginning of the children list, instead of at the end.
addChildLeftWithSiblings(AST) - Method in class antlraux.util.LexInfoAST
Similar to LexInfoAST.addChildLeft(AST), but conservating newFirstChild's sibling list.
addCommand(Object, String, String, String, String) - Method in class antlraux.clparse.CommandLineParser
Adds a new command specification to the parser.
addDeclarations(LinkedList) - Method in class antlraux.context.Scope
It adds the declarations contained in "list" to this scope.
addModifier(String) - Method in interface antlraux.context.types.ModifiedType
Adds a new modifier to the modifiers set
addModifier(String) - Method in class antlraux.context.types.DeclaredType
 
addParam(Type) - Method in class antlraux.context.types.MethodType
 
addSibling(AST) - Method in class antlraux.util.LexInfoAST
Adds a sibling to the sibling list, without erasing
addSuperClassAttributes(int) - Method in class antlraux.context.types.ClassType
 
addSuperClassMethods(int) - Method in class antlraux.context.types.ClassType
 
antlraux.clparse - package antlraux.clparse
Classes involved in parsing of the command line.
antlraux.context - package antlraux.context
Package used to manage contextual information.
antlraux.context.asts - package antlraux.context.asts
Several ASTs featuring context-related functionalities.
antlraux.context.types - package antlraux.context.types
antlraux type system.
antlraux.util - package antlraux.util
Miscellaneous utility classes package.
ast - Variable in class antlraux.context.Declaration
The AST that originated the declaration.
AttributeType - class antlraux.context.types.AttributeType.
This is a basic implementation of a class' attribute.
AttributeType(int, String, Type, ClassType) - Constructor for class antlraux.context.types.AttributeType
 

C

checkCharType(char) - Static method in class antlraux.clparse.TypeDealer
Checks if a char is valid.
checkStringTypes(String) - Static method in class antlraux.clparse.TypeDealer
Checks if a string contains only valid chars.
ClassMemberType - interface antlraux.context.types.ClassMemberType.
Types that implement this interface are class members; use it for methods, attributes and such.
classType - Variable in class antlraux.context.types.MethodType
The class that holds the method
classType - Variable in class antlraux.context.types.AttributeType
The class that holds the attribute
ClassType - class antlraux.context.types.ClassType.
This class represents a Type that modelizes the type of a class, this is, a set of data and a set of methods.
ClassType(int, String, ClassType, Scope) - Constructor for class antlraux.context.types.ClassType
 
clearModifiers() - Method in interface antlraux.context.types.ModifiedType
Clears all modifiers
clearModifiers() - Method in class antlraux.context.types.DeclaredType
 
clearParams() - Method in class antlraux.context.types.MethodType
 
closeScope(int) - Method in class antlraux.context.Context
Closes the current scope
column - Variable in class antlraux.util.CommonLexInfo
column information
column - Variable in class antlraux.context.Declaration
Lexical information.
Command - class antlraux.clparse.Command.
A Command is the union of a CommandSpec and a list of parameters.
Command(CommandSpec, Object[]) - Constructor for class antlraux.clparse.Command
Only constructor of the class
CommandLineParser - class antlraux.clparse.CommandLineParser.
This is the main class of the package antlraux.clparse.
CommandLineParser(CommandLineParser) - Constructor for class antlraux.clparse.CommandLineParser
Builds a CommandLineParser by copy.
CommandLineParser(String) - Constructor for class antlraux.clparse.CommandLineParser
Builds a CommandLineParser with a specified parser name.
CommandLineParser(String, String) - Constructor for class antlraux.clparse.CommandLineParser
Builds a CommandLineParser with a specified parser name, and a string to parse.
CommandLineParser(String, String[]) - Constructor for class antlraux.clparse.CommandLineParser
Builds a CommandLineParser with a specified parser name, and a string to parse.
CommandLineParserException - exception antlraux.clparse.CommandLineParserException.
An instance of this exception will be launched any time that an error is encountered during the command line parsing or execution.
CommandLineParserException() - Constructor for class antlraux.clparse.CommandLineParserException
 
CommandLineParserException(String) - Constructor for class antlraux.clparse.CommandLineParserException
 
commandName - Variable in class antlraux.clparse.CommandSpec
 
CommandSpec - class antlraux.clparse.CommandSpec.
This class encapsulates the specification of a command.
CommandSpec(Object, String, String, String, String) - Constructor for class antlraux.clparse.CommandSpec
Constructs a new command specification.
CommonLexInfo - class antlraux.util.CommonLexInfo.
This is a class that completely implements interface LexInfo.
CommonLexInfo() - Constructor for class antlraux.util.CommonLexInfo
 
CommonLexInfo(LexInfo) - Constructor for class antlraux.util.CommonLexInfo
 
CommonLexInfo(String, int, int) - Constructor for class antlraux.util.CommonLexInfo
 
CommonType - class antlraux.context.types.CommonType.
A very basic implementation of Type.
CommonType() - Constructor for class antlraux.context.types.CommonType
 
CommonType(int, String) - Constructor for class antlraux.context.types.CommonType
 
compareModifiers(ModifiedType) - Method in interface antlraux.context.types.ModifiedType
Returns true if other has the same modifiers than "this"
compareModifiers(ModifiedType) - Method in class antlraux.context.types.DeclaredType
 
compatibleParamLists(MethodType) - Method in class antlraux.context.types.MethodType
Returns true if the two param lists are "compatible" (they have the same length, and every parameter type is compatible with its equivalent in the other list).
compatibleParams(Type, Type) - Method in class antlraux.context.types.MethodType
Returns true if both myType and hisType implement HeritableType, and hisType.isA(myType) myType.equals(hisType) || hisType.equals(myType)
compatibleWith(MethodType) - Method in class antlraux.context.types.MethodType
 
compatibleWith(MethodType, boolean, boolean, boolean) - Method in class antlraux.context.types.MethodType
 
Context - class antlraux.context.Context.
The main class for managing contextual information.
Context(int, String) - Constructor for class antlraux.context.Context
It creates a default scope if no other is specified
Context(Scope) - Constructor for class antlraux.context.Context
Uses a given scope as root scope
ContextException - exception antlraux.context.ContextException.
This is the exception launched when an error happens during contextual information treatment.
ContextException() - Constructor for class antlraux.context.ContextException
 
ContextException(String) - Constructor for class antlraux.context.ContextException
 
ContextException(String, LexInfo) - Constructor for class antlraux.context.ContextException
 
ContextException(String, String, int, int) - Constructor for class antlraux.context.ContextException
 
copyLexInfo(LexInfo) - Method in class antlraux.util.LexInfoToken
Sets the Lex information
copyLexInfo(LexInfo) - Method in class antlraux.util.LexInfoException
 
copyLexInfo(LexInfo) - Method in class antlraux.util.LexInfoAST
Copies filename, line and column from "from"
copyLexInfo(LexInfo) - Method in interface antlraux.util.LexInfo
Copies the lexical information from other LexInfo.
copyLexInfo(LexInfo) - Method in class antlraux.util.CommonLexInfo
Copies the lexical information from other LexInfo
copyLexInfo(LexInfo) - Method in class antlraux.context.Declaration
 

D

Declaration - class antlraux.context.Declaration.
Declarations are the basic contextual information unit.
Declaration(int, Type, String) - Constructor for class antlraux.context.Declaration
 
Declaration(int, Type, String, AST, AST, LexInfo) - Constructor for class antlraux.context.Declaration
 
Declaration(int, Type, String, AST, AST, String, int, int) - Constructor for class antlraux.context.Declaration
 
DeclaredType - class antlraux.context.types.DeclaredType.
This class is an extension of CommonType that implements ModifiedType, so it implements a very basic Type with modifiers.
DeclaredType() - Constructor for class antlraux.context.types.DeclaredType
 
DeclaredType(int, String) - Constructor for class antlraux.context.types.DeclaredType
 
decTabs() - Method in class antlraux.util.Logger
Decrements Logger.tabLevel by one unit
DEFAULT_COLUMN - Static variable in interface antlraux.util.LexInfo
Provides a safe default column value (-1)
DEFAULT_FILENAME - Static variable in interface antlraux.util.LexInfo
Provides a safe default file name (null)
DEFAULT_LINE - Static variable in interface antlraux.util.LexInfo
Provides a safe default line value (-1)
DEFAULT_NAME - Static variable in interface antlraux.context.types.Type
 
DEFAULT_TAG - Static variable in interface antlraux.context.types.Type
 
description - Variable in class antlraux.clparse.CommandSpec
 

E

EnumerationIterator - class antlraux.util.EnumerationIterator.
Transforms an Enumeration in an Iterator.
EnumerationIterator(Enumeration) - Constructor for class antlraux.util.EnumerationIterator
 
equals(Object) - Method in interface antlraux.context.types.Type
 
equals(Object) - Method in class antlraux.context.types.DeclaredType
 
equals(Object) - Method in class antlraux.context.types.CommonType
 
EValue - Variable in class antlraux.context.asts.ExpressionAST
This is a calculated value.
execute() - Method in class antlraux.clparse.Task
This method calls the method associated to the task, passing it its list of params.
execute() - Method in class antlraux.clparse.Command
This method "launches" a command.
ExecutedMethodException - exception antlraux.clparse.ExecutedMethodException.
This exception is thrown when the method associated to a task launch itself an exception.
ExecutedMethodException() - Constructor for class antlraux.clparse.ExecutedMethodException
 
ExecutedMethodException(String) - Constructor for class antlraux.clparse.ExecutedMethodException
 
ExecutedMethodException(String, Exception) - Constructor for class antlraux.clparse.ExecutedMethodException
 
executeNext() - Method in class antlraux.clparse.CommandLineParser
Executed the next task to be executed, and erases it from the task vector.
executer - Variable in class antlraux.clparse.CommandSpec
 
executeWhilePossible() - Method in class antlraux.clparse.CommandLineParser
Executes any pending task in order.
ExpressionAST - class antlraux.context.asts.ExpressionAST.
This class can be used to modelize the AST of an expression.
ExpressionAST() - Constructor for class antlraux.context.asts.ExpressionAST
 
ExpressionAST(AST) - Constructor for class antlraux.context.asts.ExpressionAST
This constructor copies the first child and next sibling of other using the ExpressionAST.initialize(AST) method

F

father - Variable in class antlraux.context.Scope
The scope's father.
filename - Variable in class antlraux.util.CommonLexInfo
filename information
filename - Variable in class antlraux.context.Declaration
Lexical information.
flf - Variable in class antlraux.util.Logger
The file line formatter

G

getAST() - Method in class antlraux.context.Declaration
 
getClassType() - Method in class antlraux.context.types.MethodType
 
getClassType() - Method in interface antlraux.context.types.ClassMemberType
 
getClassType() - Method in class antlraux.context.types.AttributeType
 
getColumn() - Method in class antlraux.util.LexInfoAST
Get the file name for this node
getColumn() - Method in interface antlraux.util.LexInfo
Get the column for this node
getColumn() - Method in class antlraux.util.CommonLexInfo
Get the column for this node
getColumn() - Method in class antlraux.context.Declaration
 
getCompleteMethodName() - Method in class antlraux.clparse.CommandSpec
Returns an String containing with the format executer-class.method(list-of-types), where executer-class if the class of the executer object and list-of-types is the list of params of the method.
getCurrentCommandName() - Method in class antlraux.clparse.CommandLineParser
Gets the name of the command that generated the task that is being currently executed (the current task is the last task executed, or currently executing).
getCurrentScope() - Method in class antlraux.context.Context
Returns the scope
getEValue() - Method in class antlraux.context.asts.ExpressionAST
 
getException() - Method in class antlraux.clparse.ExecutedMethodException
Method that returns the exception launched by the executed method.
getExpType() - Method in class antlraux.context.asts.TypeAST
 
getFather() - Method in class antlraux.context.Scope
Accessor for Scope.father
getFileLineFormatter() - Method in class antlraux.util.Logger
Accessor for Logger.flf
getFilename() - Method in class antlraux.util.LexInfoToken
Get the file name for this token
getFilename() - Method in class antlraux.util.LexInfoAST
Get the file name for this node
getFilename() - Method in interface antlraux.util.LexInfo
Get the file name for this node
getFilename() - Method in class antlraux.util.CommonLexInfo
Get the file name for this node
getFilename() - Method in class antlraux.context.Declaration
 
getInitialValue() - Method in class antlraux.context.Declaration
 
getLastChild() - Method in class antlraux.util.LexInfoAST
Returns the last child of the children, or null if there are no children
getLastSibling() - Method in class antlraux.util.LexInfoAST
It returns the last sibling of the sibling list.
getLexInfoString() - Method in class antlraux.util.LexInfoToken
Returns a String in the stype "filename:line:column".
getLexInfoString() - Method in class antlraux.util.LexInfoException
 
getLexInfoString() - Method in class antlraux.util.LexInfoAST
Returns a string representing the lexInfo of the AST (filename:line:column).
getLexInfoString() - Method in interface antlraux.util.LexInfo
Returns true if all the information (Filename:line:column) is valid; false otherwise.
getLexInfoString() - Method in class antlraux.util.CommonLexInfo
Returns true if all the information (Filename:line:column) is valid; false otherwise.
getLexInfoString() - Method in class antlraux.context.Declaration
 
getLine() - Method in class antlraux.util.LexInfoAST
Get the file name for this node
getLine() - Method in interface antlraux.util.LexInfo
Get the line for this node
getLine() - Method in class antlraux.util.CommonLexInfo
Get the line for this node
getLine() - Method in class antlraux.context.Declaration
 
getLogCounter() - Method in class antlraux.util.Logger
Accessor for Logger.logCounter
getLValue() - Method in class antlraux.context.asts.ExpressionAST
 
getMinLogLevel() - Method in class antlraux.util.Logger
Accessor for Logger.minLogLevel
getName() - Method in class antlraux.util.Logger
Accessor for Logger.name
getName() - Method in class antlraux.context.Scope
Accessor for Scope.name
getName() - Method in class antlraux.context.Declaration
 
getName() - Method in interface antlraux.context.types.Type
Returns the Type's name
getName() - Method in class antlraux.context.types.CommonType
 
getNewLineString() - Method in class antlraux.util.Logger
Accessor for Logger.newLineString
getPrevChild(AST) - Method in class antlraux.util.LexInfoAST
It returns the sibling that precedes "child" in the children list.
getReturnType() - Method in class antlraux.context.types.MethodType
 
getRootScope() - Method in class antlraux.context.Context
Gets the root scope
getRValue() - Method in class antlraux.context.asts.ExpressionAST
 
getScope() - Method in interface antlraux.context.types.ScopedType
Gets the type's scope
getScope() - Method in class antlraux.context.types.MethodType
 
getScope() - Method in class antlraux.context.types.ClassType
Accessor for ClassType.scope
getScope() - Method in class antlraux.context.asts.ScopeAST
 
getStringOfTypes(String, boolean) - Static method in class antlraux.clparse.TypeDealer
Returns a string containing the names of the classes associated to a specification string.
getSuperType() - Method in interface antlraux.context.types.SimpleInheritanceType
 
getSuperType() - Method in class antlraux.context.types.ClassType
Accessor for ClassType.superType
getTabLevel() - Method in class antlraux.util.Logger
Accessor for Logger.tabLevel
getTabString() - Method in class antlraux.util.Logger
Accessor for Logger.tabString
getTag() - Method in class antlraux.context.Scope
Accessor for Scope.tag
getTag() - Method in class antlraux.context.Declaration
 
getTag() - Method in interface antlraux.context.types.Type
Returns the Type's tag
getTag() - Method in class antlraux.context.types.CommonType
 
getType() - Method in class antlraux.context.Declaration
 
getType() - Method in class antlraux.context.types.AttributeType
 
getTypeFromChar(char) - Static method in class antlraux.clparse.TypeDealer
Given a valid class specification, it returns its class.
getTypesFromString(String) - Static method in class antlraux.clparse.TypeDealer
Given a String of specification, it returns its table of types associated.
getUsageMessage(boolean) - Method in class antlraux.clparse.CommandLineParser
Returns an string that can be used as ussage message.

H

hasModifier(String) - Method in interface antlraux.context.types.ModifiedType
Returns true if the Type has the modifier "modifierName"
hasModifier(String) - Method in class antlraux.context.types.DeclaredType
 
hasMoreElements() - Method in class antlraux.util.IteratorEnumeration
 
hasMoreToExecute() - Method in class antlraux.clparse.CommandLineParser
Tests if there are more tasks to be executed.
hasMoreToParse() - Method in class antlraux.clparse.CommandLineParser
Tests if the parser has finished parsing the command Line or not.
hasNext() - Method in class antlraux.util.EnumerationIterator
 
HeritableType - interface antlraux.context.types.HeritableType.
This is a very simple interface that modelizes the "isA" relationship

I

incTabs() - Method in class antlraux.util.Logger
Increments Logger.tabLevel in one unit
initialize(AST) - Method in class antlraux.util.LexInfoAST
Firstly this method calls super.initialize(ast) Then it checks if ast is instanceof LexInfoAST.
initialize(AST) - Method in class antlraux.context.asts.TypeAST
Warning: this implementation of initialize copies ast's first child and next sibling.
initialize(AST) - Method in class antlraux.context.asts.ScopeAST
Warning: this implementation of initialize copies ast's first child and next sibling.
initialize(AST) - Method in class antlraux.context.asts.ExpressionAST
Warning: this implementation of initialize copies the first child and next sibling of ast.
initialize(Declaration) - Method in class antlraux.context.Declaration
 
initialize(Token) - Method in class antlraux.util.LexInfoAST
Firstly this method calls super.initialize(token) Then it copies filename, line and column information from the Token.
initialValue - Variable in class antlraux.context.Declaration
An initial value for the declaration.
insert(Declaration) - Method in class antlraux.context.Scope
Inserts a new Declaration
insert(Declaration) - Method in class antlraux.context.Context
Inserts a declaration in the current scope.
isA(HeritableType) - Method in interface antlraux.context.types.HeritableType
 
isA(HeritableType) - Method in class antlraux.context.types.ClassType
 
IteratorEnumeration - class antlraux.util.IteratorEnumeration.
Transforms an Iterator in an Enumeration.
IteratorEnumeration(Iterator) - Constructor for class antlraux.util.IteratorEnumeration
 

L

LexInfo - interface antlraux.util.LexInfo.
This interface represents a class that stores lexical information, this is, a filename, a line and a column.
LexInfoAST - class antlraux.util.LexInfoAST.
This subclass of CommonAST implements LexInfo, so it can return the filename, line and column of its information.
LexInfoAST() - Constructor for class antlraux.util.LexInfoAST
Default constructor.
LexInfoAST(AST) - Constructor for class antlraux.util.LexInfoAST
Calls LexInfoAST.initialize(antlr.collections.AST)
LexInfoAST(int, String) - Constructor for class antlraux.util.LexInfoAST
Calls CommonAST.initialize(int,String)
LexInfoAST(Token) - Constructor for class antlraux.util.LexInfoAST
Calls LexInfoAST.initialize(antlr.Token)
LexInfoException - exception antlraux.util.LexInfoException.
This is a version of RecognitionException that implements LexInfo
LexInfoException() - Constructor for class antlraux.util.LexInfoException
 
LexInfoException(String) - Constructor for class antlraux.util.LexInfoException
 
LexInfoException(String, LexInfo) - Constructor for class antlraux.util.LexInfoException
 
LexInfoException(String, String, int, int) - Constructor for class antlraux.util.LexInfoException
 
LexInfoToken - class antlraux.util.LexInfoToken.
This subclass of CommonToken implements LexInfo, really allowing the use of a filename (which is ommited in CommonToken) To make your lexer use this class of tokens, you'll have to use the method setTokenObjectClass: import antlraux.util.LexInfoToken; ...
LexInfoToken() - Constructor for class antlraux.util.LexInfoToken
Default constructor.
LexInfoToken(int, String) - Constructor for class antlraux.util.LexInfoToken
Only initializes type and text.
LexInfoToken(Token) - Constructor for class antlraux.util.LexInfoToken
Copy constructor
line - Variable in class antlraux.util.CommonLexInfo
line information
line - Variable in class antlraux.context.Declaration
Lexical information.
log(String, int) - Method in class antlraux.util.Logger
Adds a log with a certain level.
log(String, int, LexInfo) - Method in class antlraux.util.Logger
A log with lex info
log(String, int, String, int, int) - Method in class antlraux.util.Logger
A log with lex info
logCounter - Variable in class antlraux.util.Logger
Counter
Logger - class antlraux.util.Logger.
This class can be used for maintaining logs.
Logger(String) - Constructor for class antlraux.util.Logger
Creates a new logger with a certain name
Logger(String, OutputStream) - Constructor for class antlraux.util.Logger
Specifies name and output stream
Logger(String, OutputStream, String, String) - Constructor for class antlraux.util.Logger
Specifies nearly everything
Logger(String, OutputStream, String, String, FileLineFormatter) - Constructor for class antlraux.util.Logger
Specifies everything
LValue - Variable in class antlraux.context.asts.ExpressionAST
An expression with left value set to true can be put on the left sign of an assignation; otherwise, they can't.

M

method - Variable in class antlraux.clparse.CommandSpec
 
MethodType - class antlraux.context.types.MethodType.
This is a basic implementation of MethodType inferface.
MethodType(int, String, Type, ClassType, Scope) - Constructor for class antlraux.context.types.MethodType
 
minLogLevel - Variable in class antlraux.util.Logger
Minimum level of the messages (default -1; shows all messages)
ModifiedType - interface antlraux.context.types.ModifiedType.
This interface represents a Type that has a set of modifiers in the form of strings (like "public", "static", etc).
modifiers - Variable in class antlraux.context.types.DeclaredType
 
modifiers() - Method in interface antlraux.context.types.ModifiedType
Returns the modifier list in form of Enumeration
modifiers() - Method in class antlraux.context.types.DeclaredType
 
modifiersSet() - Method in interface antlraux.context.types.ModifiedType
Returns the modifiers set
modifiersSet() - Method in class antlraux.context.types.DeclaredType
 

N

name - Variable in class antlraux.util.Logger
The name of the Logger
name - Variable in class antlraux.context.Scope
The name of a scope is just a "caption", that will be used for most printing procedures.
name - Variable in class antlraux.context.Declaration
The declaration name
name - Variable in class antlraux.context.types.CommonType
 
namesTable - Variable in class antlraux.context.Scope
The scope's set of declarations, hashed by name.
newLine() - Method in class antlraux.util.Logger
Prints the string Logger.newLineString once on the Logger's outputStream
newLineString - Variable in class antlraux.util.Logger
String used for new lines
next() - Method in class antlraux.util.EnumerationIterator
 
nextElement() - Method in class antlraux.util.IteratorEnumeration
 

O

objectFromString(String, char) - Static method in class antlraux.clparse.TypeDealer
Tries to parse an object of the specified type from a specified String.
openScope(int, String) - Method in class antlraux.context.Context
Opens a new scope
openScope(Scope) - Method in class antlraux.context.Context
Opens a new scope
os - Variable in class antlraux.util.Logger
The log's output stream

P

params - Variable in class antlraux.context.types.MethodType
A list of parameter types
params() - Method in class antlraux.context.types.MethodType
 
paramTypes - Variable in class antlraux.clparse.CommandSpec
 
parseNext() - Method in class antlraux.clparse.CommandLineParser
Tries to parse a new command and its params.
parseWhilePossible() - Method in class antlraux.clparse.CommandLineParser
Parses the commandLine that has not been parsed until its end is reached.
print(String) - Method in class antlraux.util.Logger
Prints a message to the Logger's output stream

R

remove() - Method in class antlraux.util.EnumerationIterator
 
replaceChild(AST, AST) - Method in class antlraux.util.LexInfoAST
Replaces a child node (prevAST) with another one (newAST) This method erases any siblings of newAST and adds the current tree's children as siblings
replaceChildWithSiblings(AST, AST) - Method in class antlraux.util.LexInfoAST
Similar to LexInfoAST.replaceChild(AST,AST), but conservating newAST's sibling list (current tree's children are added after that list).
resetLogCounter() - Method in class antlraux.util.Logger
Makes Logger.logCounter=0
returnType - Variable in class antlraux.context.types.MethodType
The method's return type
RValue - Variable in class antlraux.context.asts.ExpressionAST
An expression with no Rvalue cannot be used on the right side of an assignation, because they are not "readable".

S

scope - Variable in class antlraux.context.types.MethodType
Stores the method's scope
scope - Variable in class antlraux.context.types.ClassType
The scope where attribute definitions will be stored
scope - Variable in class antlraux.context.asts.ScopeAST
 
Scope - class antlraux.context.Scope.
This is the class tha modelizes scopes.
Scope(int, String) - Constructor for class antlraux.context.Scope
Constructor that sets Scope.tag and Scope.name
Scope(int, String, Scope) - Constructor for class antlraux.context.Scope
Constructor that sets Scope.tag, Scope.name and Scope.father
ScopeAST - class antlraux.context.asts.ScopeAST.
This AST implementation is very useful when modelling ASTs that store a declaration that has a scope, like a class or method.
ScopeAST() - Constructor for class antlraux.context.asts.ScopeAST
 
ScopeAST(AST, Scope) - Constructor for class antlraux.context.asts.ScopeAST
This constructors calls ScopeAST.initialize(AST), so it copies next sibling and first child.
ScopedType - interface antlraux.context.types.ScopedType.
This interface modelizes a Type that has a Scope, like a class type or a method type.
searchAll(int) - Method in class antlraux.context.Scope
It calls Scope.searchAllLocally(int) with tag as param and, if nothing found, it continues with the father, the father of the father, etc.
searchAll(int, String) - Method in class antlraux.context.Scope
It calls Scope.searchAllLocally(int, String) with tag as param and, if nothing found, it continues with the scope's father, the father of the father, etc.
searchAll(String) - Method in class antlraux.context.Scope
It calls Scope.searchAllLocally(String) with "name" as param and, if nothing found, it continues with the father, the father of the father, etc.
searchAllLocally(int) - Method in class antlraux.context.Scope
Searches in current scope every Declaration tagged like "tag"
searchAllLocally(int, String) - Method in class antlraux.context.Scope
Searches in current scope every Declaration tagged like "tag" and named like "name"
searchAllLocally(String) - Method in class antlraux.context.Scope
Searches in current scope every Declaration named "name"
searchCompatibleMethod(int, MethodType) - Method in class antlraux.context.types.ClassType
 
searchFirst(int) - Method in class antlraux.context.Scope
It calls Scope.searchFirstLocally(int) with "tag" as param and, if nothing found, it continues with the father, the father of the father, etc.
searchFirst(int, String) - Method in class antlraux.context.Scope
It calls Scope.searchFirstLocally(int,String) with "tag" and "name" as params and, if nothing found, it continues with the scope's father, the father of the father, etc.
searchFirst(String) - Method in class antlraux.context.Scope
It calls Scope.searchFirstLocally(String) with "name" as param and, if nothing found, it continues with the father, the father of the father, etc.
searchFirstLocally(int) - Method in class antlraux.context.Scope
Searches in current scope the first (last inserted) Declaration with a tag==tag
searchFirstLocally(int, String) - Method in class antlraux.context.Scope
Searches in current scope the first (last inserted) Declaration with a tag==tag AND name==name
searchFirstLocally(String) - Method in class antlraux.context.Scope
Searches in current scope the first (last inserted) Declaration named "name"
setAST(AST) - Method in class antlraux.context.Declaration
 
setClassType(Type) - Method in class antlraux.context.types.MethodType
 
setClassType(Type) - Method in interface antlraux.context.types.ClassMemberType
 
setClassType(Type) - Method in class antlraux.context.types.AttributeType
 
setColumn(int) - Method in class antlraux.util.LexInfoException
 
setColumn(int) - Method in class antlraux.util.LexInfoAST
Set the file name for this node
setColumn(int) - Method in interface antlraux.util.LexInfo
Set the column for this node
setColumn(int) - Method in class antlraux.util.CommonLexInfo
Set the column for this node
setColumn(int) - Method in class antlraux.context.Declaration
 
setCurrentScope(Scope) - Method in class antlraux.context.Context
Sets current scope
setEValue(Object) - Method in class antlraux.context.asts.ExpressionAST
 
setExpType(Type) - Method in class antlraux.context.asts.TypeAST
 
setFather(Scope) - Method in class antlraux.context.Scope
Accessor for Scope.father
setFileLineFormatter(FileLineFormatter) - Method in class antlraux.util.Logger
Accessor for Logger.flf
setFilename(String) - Method in class antlraux.util.LexInfoToken
Set the file name for this token.
setFilename(String) - Method in class antlraux.util.LexInfoException
 
setFilename(String) - Method in class antlraux.util.LexInfoAST
Set the file name for this node.
setFilename(String) - Method in interface antlraux.util.LexInfo
Sets the file name for this node.
setFilename(String) - Method in class antlraux.util.CommonLexInfo
Sets the file name for this node.
setFilename(String) - Method in class antlraux.context.Declaration
 
setInitialValue(AST) - Method in class antlraux.context.Declaration
 
setLine(int) - Method in class antlraux.util.LexInfoException
 
setLine(int) - Method in class antlraux.util.LexInfoAST
Set the file name for this node
setLine(int) - Method in interface antlraux.util.LexInfo
Set the line for this node
setLine(int) - Method in class antlraux.util.CommonLexInfo
Set the line for this node
setLine(int) - Method in class antlraux.context.Declaration
 
setLValue(boolean) - Method in class antlraux.context.asts.ExpressionAST
 
setMinLogLevel(int) - Method in class antlraux.util.Logger
Accessor for Logger.minLogLevel
setName(String) - Method in class antlraux.context.Scope
Accessor for Scope.name
setName(String) - Method in class antlraux.context.Declaration
Accessor for Declaration.name
setName(String) - Method in interface antlraux.context.types.Type
Sets the Type's name.
setName(String) - Method in class antlraux.context.types.CommonType
 
setNewLineString(String) - Method in class antlraux.util.Logger
Accessor for Logger.newLineString
setOutputStream(OutputStream) - Method in class antlraux.util.Logger
Accessor for Logger.os
setParsingParams(String) - Method in class antlraux.clparse.CommandLineParser
Changes the command line that the parser must parse.
setParsingParams(String[]) - Method in class antlraux.clparse.CommandLineParser
Changes the command line that the parser must parse.
setReturnType(Type) - Method in class antlraux.context.types.MethodType
 
setRValue(boolean) - Method in class antlraux.context.asts.ExpressionAST
 
setScope(Scope) - Method in interface antlraux.context.types.ScopedType
Sets the type's scope
setScope(Scope) - Method in class antlraux.context.types.MethodType
 
setScope(Scope) - Method in class antlraux.context.types.ClassType
Accessor for ClassType.scope
setScope(Scope) - Method in class antlraux.context.asts.ScopeAST
 
setSuperType(SimpleInheritanceType) - Method in interface antlraux.context.types.SimpleInheritanceType
 
setSuperType(SimpleInheritanceType) - Method in class antlraux.context.types.ClassType
Accessor for ClassType.superType
setTabLevel(int) - Method in class antlraux.util.Logger
Accessor for Logger.tabLevel.
setTabString(String) - Method in class antlraux.util.Logger
Accessor for Logger.tabString
setTag(int) - Method in class antlraux.context.Scope
Accessor for Scope.tag
setTag(int) - Method in class antlraux.context.Declaration
 
setTag(int) - Method in interface antlraux.context.types.Type
Sets the Type's tag
setTag(int) - Method in class antlraux.context.types.CommonType
 
setType(Type) - Method in class antlraux.context.Declaration
Accessor for Declaration.type
setType(Type) - Method in class antlraux.context.types.AttributeType
 
setVerboseStringConversion(boolean) - Static method in class antlraux.util.LexInfoAST
When set to true, adds information to LexInfoAST.toString()
setVerboseStringConversion(boolean) - Static method in class antlraux.context.asts.TypeAST
If set to true, this adds some additional information to the string generated by TypeAST.toString() (shows the AST's type)
setVerboseStringConversion(boolean) - Static method in class antlraux.context.asts.ScopeAST
If set to true, this adds some additional information to the string generated by ScopeAST.toString() (shows the AST's scope's name)
setVerboseStringConversion(boolean) - Static method in class antlraux.context.asts.ExpressionAST
If set to true, this adds some additional information to the string generated by ExpressionAST.toString() (shows the AST's type, RValue, LValue and EValue)
SimpleInheritanceType - interface antlraux.context.types.SimpleInheritanceType.
This derived interface modelizes types that implement simple inheritance (only one super class, no interfaces)
spec - Variable in class antlraux.clparse.Task
 
spec - Variable in class antlraux.clparse.Command
 
superType - Variable in class antlraux.context.types.ClassType
The Type of this Type's class super class :)

T

tabLevel - Variable in class antlraux.util.Logger
Tabulation level
tabString - Variable in class antlraux.util.Logger
String used in tabulations
tabulate() - Method in class antlraux.util.Logger
Prints the string "Logger.tabString" Logger.tabLevel times on the Logger's outputStream.
tabulate(int, StringBuffer) - Static method in class antlraux.util.LexInfoAST
 
tag - Variable in class antlraux.context.Scope
This integer needed on every Scope constructor represents a type of scope.
tag - Variable in class antlraux.context.Declaration
An integer used to store different "declaration types", such as PARAMETER, ATTRIBUTE or CLASS.
tag - Variable in class antlraux.context.types.CommonType
 
tagsTable - Variable in class antlraux.context.Scope
The scope's set of declarations, hashed by tag.
Task - class antlraux.clparse.Task.
Each time that the parser succesfully parses a command and its params, it adds a Task to a list of tasks.
Task(CommandSpec, Object[]) - Constructor for class antlraux.clparse.Task
The class constructor.
toFather() - Method in class antlraux.context.Context
Sets the current scope to point to the father
toRoot() - Method in class antlraux.context.Context
Sets the current scope to the root scope
toString() - Method in class antlraux.util.LexInfoAST
Returns a String representing the information in the root of the node.
toString() - Method in class antlraux.context.Scope
 
toString() - Method in class antlraux.context.Declaration
 
toString() - Method in interface antlraux.context.types.Type
 
toString() - Method in class antlraux.context.types.MethodType
 
toString() - Method in class antlraux.context.types.DeclaredType
 
toString() - Method in class antlraux.context.types.CommonType
 
toString() - Method in class antlraux.context.types.ClassType
 
toString() - Method in class antlraux.context.types.AttributeType
 
toString() - Method in class antlraux.context.asts.TypeAST
 
toString() - Method in class antlraux.context.asts.ScopeAST
 
toString() - Method in class antlraux.context.asts.ExpressionAST
 
toStringList() - Method in class antlraux.util.LexInfoAST
 
toStringList(int) - Method in class antlraux.util.LexInfoAST
Print out a child-sibling tree in LISP notation
toStringTree() - Method in class antlraux.util.LexInfoAST
 
type - Variable in class antlraux.context.Declaration
The declaration Type.
type - Variable in class antlraux.context.types.AttributeType
The attribute's type
Type - interface antlraux.context.types.Type.
This interface is the main object of antlraux's type system.
TypeAST - class antlraux.context.asts.TypeAST.
This class may be used when modelling an AST with type information.
TypeAST() - Constructor for class antlraux.context.asts.TypeAST
 
TypeAST(AST) - Constructor for class antlraux.context.asts.TypeAST
This constructors calls TypeAST.initialize(AST) so it copies other's first child and next sibling.
TypeDealer - class antlraux.clparse.TypeDealer.
Conversion between Strings and java basic types is necessary along all the parsing.
TypeDealer() - Constructor for class antlraux.clparse.TypeDealer
 
TypeException - exception antlraux.context.types.TypeException.
Exception launched when an error is found in the type system.
TypeException() - Constructor for class antlraux.context.types.TypeException
 
TypeException(String) - Constructor for class antlraux.context.types.TypeException
 
TypeException(String, String, int, int) - Constructor for class antlraux.context.types.TypeException
 
types - Variable in class antlraux.clparse.CommandSpec
 

V

verboseStringConversion - Static variable in class antlraux.util.LexInfoAST
 
verboseStringConversion - Static variable in class antlraux.context.asts.TypeAST
 
verboseStringConversion - Static variable in class antlraux.context.asts.ExpressionAST
 

A C D E F G H I L M N O P R S T V
antlraux package
v0.2.1

Created by Enrique José García Cota