diff options
author | aclement <aclement> | 2005-12-21 09:20:01 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-12-21 09:20:01 +0000 |
commit | 930c1d3b842f3bccbc6d434907608bdc5d04a63f (patch) | |
tree | e1d00ccd0cfdc121e17c75bdde322d3265bd30ca /asm | |
parent | d21b27a4ec70fe7dbb4b38a42ff6015ec4cde16f (diff) | |
download | aspectj-930c1d3b842f3bccbc6d434907608bdc5d04a63f.tar.gz aspectj-930c1d3b842f3bccbc6d434907608bdc5d04a63f.zip |
ajdoc: fixes from Helen for 119453
Diffstat (limited to 'asm')
-rw-r--r-- | asm/src/org/aspectj/asm/IProgramElement.java | 3 | ||||
-rw-r--r-- | asm/src/org/aspectj/asm/internal/ProgramElement.java | 12 |
2 files changed, 13 insertions, 2 deletions
diff --git a/asm/src/org/aspectj/asm/IProgramElement.java b/asm/src/org/aspectj/asm/IProgramElement.java index b754fa9b9..d1175df74 100644 --- a/asm/src/org/aspectj/asm/IProgramElement.java +++ b/asm/src/org/aspectj/asm/IProgramElement.java @@ -75,7 +75,8 @@ public interface IProgramElement extends Serializable { /** * This correponds to both method return types and field types. */ - public String getCorrespondingType(); + public String getCorrespondingType(); + public String getCorrespondingType(boolean getFullyQualifiedType); public String toSignatureString(); diff --git a/asm/src/org/aspectj/asm/internal/ProgramElement.java b/asm/src/org/aspectj/asm/internal/ProgramElement.java index 4a5d002a0..0c7c8683c 100644 --- a/asm/src/org/aspectj/asm/internal/ProgramElement.java +++ b/asm/src/org/aspectj/asm/internal/ProgramElement.java @@ -297,6 +297,17 @@ public class ProgramElement implements IProgramElement { } public String getCorrespondingType() { + return getCorrespondingType(false); + } + + public String getCorrespondingType(boolean getFullyQualifiedType) { + if (getFullyQualifiedType) { + return returnType; + } + int index = returnType.lastIndexOf("."); + if (index != -1) { + return returnType.substring(index); + } return returnType; } @@ -493,6 +504,5 @@ public class ProgramElement implements IProgramElement { public ExtraInformation getExtraInfo() { return info; } - } |