#include <Type.hpp>
Enumerator |
---|
NONE |
|
INT |
|
BOOLEAN |
|
VOID |
|
INT_NEG_ONLY |
|
NULL_TYPE |
|
ast::Type::Type |
( |
shptr< Ident > |
class_name, |
|
|
int |
dimension |
|
) |
| |
void ast::Type::accept |
( |
ASTVisitor & |
visitor | ) |
const |
|
virtual |
std::string const & ast::Type::getClassName |
( |
| ) |
const |
int ast::Type::getDimension |
( |
| ) |
const |
std::string ast::Type::getName |
( |
| ) |
const |
bool ast::Type::isAnyInteger |
( |
| ) |
|
bool ast::Type::isArray |
( |
| ) |
|
bool ast::Type::isBool |
( |
| ) |
|
bool ast::Type::isClassType |
( |
| ) |
|
bool ast::Type::isInteger |
( |
| ) |
|
bool ast::Type::isRefType |
( |
bool |
checkNullType = false | ) |
|
bool ast::Type::isSpecialType |
( |
| ) |
const |
returns whether this type is $System or $out
bool ast::Type::isVoid |
( |
| ) |
|
bool ast::Type::operator!= |
( |
Type const & |
other | ) |
const |
bool ast::Type::operator< |
( |
Type const & |
other | ) |
const |
bool ast::Type::operator== |
( |
Type const & |
other | ) |
const |
void ast::Type::setDimension |
( |
int |
dimension | ) |
|
void ast::Type::toString |
( |
std::ostream & |
out, |
|
|
unsigned int |
indent, |
|
|
shptr< Expression > const & |
expression, |
|
|
bool |
= false |
|
) |
| const |
|
virtual |
void ast::Type::toString |
( |
std::ostream & |
out, |
|
|
unsigned int |
indent, |
|
|
bool |
special = false |
|
) |
| const |
|
virtual |
writes a representation of the Node to out, including all children. special invokes "special" behavior for certain nodes MethodDeclaration: print static keyword Block & If: skip indentation Expression: don't print surrounding parens in addition Block doesn't print newline after trailing } if ~indent is passed instead of indent
Implements ast::Node.
The documentation for this class was generated from the following files: