src/share/classes/com/sun/tools/apt/mirror/declaration/ExecutableDeclarationImpl.java

Print this page




  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package com.sun.tools.apt.mirror.declaration;
  27 
  28 
  29 import java.util.Collection;
  30 import java.util.ArrayList;
  31 
  32 import com.sun.mirror.declaration.*;
  33 import com.sun.mirror.type.ReferenceType;
  34 import com.sun.tools.apt.mirror.AptEnv;
  35 import com.sun.tools.javac.code.*;
  36 import com.sun.tools.javac.code.Symbol.*;
  37 
  38 
  39 /**
  40  * Implementation of ExecutableDeclaration
  41  */
  42 
  43 public abstract class ExecutableDeclarationImpl extends MemberDeclarationImpl
  44                                              implements ExecutableDeclaration {
  45     public MethodSymbol sym;
  46 
  47     protected ExecutableDeclarationImpl(AptEnv env, MethodSymbol sym) {
  48         super(env, sym);
  49         this.sym = sym;
  50     }
  51 
  52 
  53     /**
  54      * Returns type parameters (if any), method name, and signature
  55      * (value parameter types).
  56      */
  57     public String toString() {
  58         return sym.toString();
  59     }
  60 
  61     /**
  62      * {@inheritDoc}




  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package com.sun.tools.apt.mirror.declaration;
  27 
  28 
  29 import java.util.Collection;
  30 import java.util.ArrayList;
  31 
  32 import com.sun.mirror.declaration.*;
  33 import com.sun.mirror.type.ReferenceType;
  34 import com.sun.tools.apt.mirror.AptEnv;
  35 import com.sun.tools.javac.code.*;
  36 import com.sun.tools.javac.code.Symbol.*;
  37 
  38 
  39 /**
  40  * Implementation of ExecutableDeclaration
  41  */
  42 @SuppressWarnings("deprecation")
  43 public abstract class ExecutableDeclarationImpl extends MemberDeclarationImpl
  44                                              implements ExecutableDeclaration {
  45     public MethodSymbol sym;
  46 
  47     protected ExecutableDeclarationImpl(AptEnv env, MethodSymbol sym) {
  48         super(env, sym);
  49         this.sym = sym;
  50     }
  51 
  52 
  53     /**
  54      * Returns type parameters (if any), method name, and signature
  55      * (value parameter types).
  56      */
  57     public String toString() {
  58         return sym.toString();
  59     }
  60 
  61     /**
  62      * {@inheritDoc}