public final class WhileyFile
extends wybs.util.AbstractCompilationUnit
WhileyFile forms the root of the Abstract Syntax Tree.| Modifier and Type | Class and Description |
|---|---|
class |
WhileyFile.Constant
Represents a constant declaration in a Whiley source file, which has the
form:
|
static interface |
WhileyFile.Context |
static interface |
WhileyFile.Declaration |
class |
WhileyFile.Function
Represents a function declaration in a Whiley source file.
|
class |
WhileyFile.FunctionOrMethodOrProperty
Represents a function declaration or method declaration in
a Whiley source file which have the form:
|
static class |
WhileyFile.Import
Represents an import declaration in a Whiley source file, which has the
form:
|
class |
WhileyFile.Method
Represents a method declaration in a Whiley source file.
|
class |
WhileyFile.NamedDeclaration |
class |
WhileyFile.Parameter
Represents a parameter declaration as part of a function or method
declaration.
|
class |
WhileyFile.Property
Represents a function declaration in a Whiley source file.
|
class |
WhileyFile.Type
Represents a type declaration in a Whiley source file, which has the
form:
|
| Modifier and Type | Field and Description |
|---|---|
static wyfs.lang.Content.Type<WhileyFile> |
ContentType |
ArrayList<WhileyFile.Declaration> |
declarations |
| Constructor and Description |
|---|
WhileyFile(wyfs.lang.Path.Entry<WhileyFile> entry) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(WhileyFile.Declaration declaration) |
WhileyFile.NamedDeclaration |
declaration(String name) |
<T> List<T> |
declarations(Class<T> c) |
<T> List<T> |
declarations(Class<T> c,
String name) |
boolean |
hasName(String name) |
static void |
internalFailure(String msg,
WhileyFile.Context context,
wybs.lang.SyntacticElement elem) |
static void |
internalFailure(String msg,
WhileyFile.Context context,
wybs.lang.SyntacticElement elem,
Throwable ex) |
static void |
syntaxError(String msg,
WhileyFile.Context context,
wybs.lang.SyntacticElement elem) |
static void |
syntaxError(String msg,
WhileyFile.Context context,
wybs.lang.SyntacticElement elem,
Throwable ex) |
WhileyFile.Type |
typeDecl(String name) |
public static final wyfs.lang.Content.Type<WhileyFile> ContentType
public final ArrayList<WhileyFile.Declaration> declarations
public WhileyFile(wyfs.lang.Path.Entry<WhileyFile> entry)
public boolean hasName(String name)
public WhileyFile.NamedDeclaration declaration(String name)
public WhileyFile.Type typeDecl(String name)
public void add(WhileyFile.Declaration declaration)
public static void syntaxError(String msg, WhileyFile.Context context, wybs.lang.SyntacticElement elem)
public static void syntaxError(String msg, WhileyFile.Context context, wybs.lang.SyntacticElement elem, Throwable ex)
public static void internalFailure(String msg, WhileyFile.Context context, wybs.lang.SyntacticElement elem)
public static void internalFailure(String msg, WhileyFile.Context context, wybs.lang.SyntacticElement elem, Throwable ex)
Copyright © 2017. All rights reserved.