diff options
author | paltherr <paltherr@epfl.ch> | 2003-11-05 16:31:19 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-11-05 16:31:19 +0000 |
commit | 70245d69240b1de543dc644ea2fd29008eb74112 (patch) | |
tree | 26e5aed403b31ff5acccfc3b0d4feacdd761d127 /sources/scalac/atree/AField.java | |
parent | bdaca266612e6b878379253d57358ce672953e52 (diff) | |
download | scala-70245d69240b1de543dc644ea2fd29008eb74112.tar.gz scala-70245d69240b1de543dc644ea2fd29008eb74112.tar.bz2 scala-70245d69240b1de543dc644ea2fd29008eb74112.zip |
- Added atree/AClass.java
- Added atree/AField.java
- Added atree/AMember.java
- Added atree/AMethod.java
- Added atree/ARepository.java
Diffstat (limited to 'sources/scalac/atree/AField.java')
-rw-r--r-- | sources/scalac/atree/AField.java | 54 |
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(); + } + + //######################################################################## +} |