blob: bbc27f70638de210e960063c89db51a30a297ee9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/* ____ ____ ____ ____ ______ *\
** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala **
** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL **
** /_____/\____/\___/\____/____/ **
\* */
// $Id$
package scalac.atree;
import scalac.symtab.Symbol;
import scalac.symtab.Type;
/** This class represents an attributed field. */
public class AField extends AMember {
//########################################################################
// Public Constructors
/** Initializes this instance. */
public AField(Symbol symbol, boolean isStatic) {
super(symbol, isStatic);
}
//########################################################################
// Public Methods
/** Is this field final? */
public boolean isFinal() {
return false; // !!!
}
/** Is this field volatile? */
public boolean isVolatile() {
return false; // !!!
}
/** Is this field transient? */
public boolean isTransient() {
return false; // !!!
}
/** Returns the type of this field. */
public Type type() {
return symbol().type();
}
/** Returns a string representation of this field. */
public String toString() {
return new ATreePrinter().printField(this).toString();
}
//########################################################################
}
|