summaryrefslogtreecommitdiff
path: root/sources/scalac/atree/AField.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/atree/AField.java')
-rw-r--r--sources/scalac/atree/AField.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/sources/scalac/atree/AField.java b/sources/scalac/atree/AField.java
new file mode 100644
index 0000000000..bbc27f7063
--- /dev/null
+++ b/sources/scalac/atree/AField.java
@@ -0,0 +1,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();
+ }
+
+ //########################################################################
+}