1 2 29 package com.puppycrawl.tools.checkstyle.checks.usage.transmogrify; 30 31 import java.util.Vector ; 32 33 public class DefaultConstructor extends MethodDef { 34 35 protected ClassDef _classConstructed; 36 37 public DefaultConstructor(ClassDef classConstructed) { 38 super(classConstructed.getName(), classConstructed, null); 39 _classConstructed = classConstructed; 40 } 41 42 public IClass getType() { 43 return _classConstructed; 44 } 45 46 public ISignature getSignature() { 47 return new MethodSignature(new Vector ()); 48 } 49 50 public boolean equals(Object o) { 51 boolean result = false; 52 53 if (o instanceof DefaultConstructor) { 54 DefaultConstructor constructor = (DefaultConstructor)o; 55 result = getType().equals(constructor.getType()); 56 } 57 58 return result; 59 } 60 61 public void setType() {} 62 public void addParameter() {} 63 public void addException() {} 64 65 } 66 | Popular Tags |