aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2010-07-31 16:11:22 +0000
committeraclement <aclement>2010-07-31 16:11:22 +0000
commit5a5c2f6b1feaca1c01a4bbde4676d70876bcc0e7 (patch)
treeccbeed575419c7213d5e0a1d155ddf01d766ace0 /org.aspectj.ajdt.core
parent22fa178ecdb555da7efd44dcf2cbc0843cb3af04 (diff)
downloadaspectj-5a5c2f6b1feaca1c01a4bbde4676d70876bcc0e7.tar.gz
aspectj-5a5c2f6b1feaca1c01a4bbde4676d70876bcc0e7.zip
javadoc
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/CompactTypeStructureRepresentation.java261
1 files changed, 132 insertions, 129 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/CompactTypeStructureRepresentation.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/CompactTypeStructureRepresentation.java
index dcbcd0ef8..e1d931196 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/CompactTypeStructureRepresentation.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/CompactTypeStructureRepresentation.java
@@ -20,136 +20,139 @@ import org.aspectj.org.eclipse.jdt.internal.compiler.env.IBinaryNestedType;
import org.aspectj.org.eclipse.jdt.internal.compiler.env.IBinaryType;
/**
- * Used to determine if a type has structurally changed during incremental
- * compilation. At the end of compilation we create one of these objects
- * using the bytes for the class about to be woven. On a subsequent
- * incremental compile we compare the new form of the class with a previously
- * stored CompactTypeStructureRepresentation instance. A structural change
- * will indicate we need to do recompile other dependent types.
+ * Used to determine if a type has structurally changed during incremental compilation. At the end of compilation we create one of
+ * these objects using the bytes for the class about to be woven. On a subsequent incremental compile we compare the new form of the
+ * class with a previously stored CompactTypeStructureRepresentation instance. A structural change will indicate we need to do
+ * recompile other dependent types.
*/
public class CompactTypeStructureRepresentation implements IBinaryType {
- static char[][] NoInterface = CharOperation.NO_CHAR_CHAR;
- static IBinaryNestedType[] NoNestedType = new IBinaryNestedType[0];
- static IBinaryField[] NoField = new IBinaryField[0];
- static IBinaryMethod[] NoMethod = new IBinaryMethod[0];
-
- // this is the core state for comparison
- char[] className;
- int modifiers;
- char[] genericSignature;
- char[] superclassName;
- char[][] interfaces;
-
- // this is the extra state that enables us to be an IBinaryType
- char[] enclosingTypeName;
- boolean isLocal, isAnonymous, isMember;
- char[] sourceFileName;
- char[] fileName;
- char[] sourceName;
- long tagBits;
- boolean isBinaryType;
- IBinaryField[] binFields;
- IBinaryMethod[] binMethods;
- IBinaryNestedType[] memberTypes;
- IBinaryAnnotation[] annotations;
-
- public CompactTypeStructureRepresentation(ClassFileReader cfr) {
-
- this.enclosingTypeName = cfr.getEnclosingTypeName();
- this.isLocal = cfr.isLocal();
- this.isAnonymous = cfr.isAnonymous();
- this.isMember = cfr.isMember();
- this.sourceFileName = cfr.sourceFileName();
- this.fileName = cfr.getFileName();
- this.tagBits = cfr.getTagBits();
- this.isBinaryType = cfr.isBinaryType();
- this.binFields = cfr.getFields(); if (binFields==null) binFields = NoField;
- this.binMethods = cfr.getMethods();if (binMethods==null) binMethods = NoMethod;
- this.memberTypes = cfr.getMemberTypes();
- this.annotations = cfr.getAnnotations();
- this.sourceName = cfr.getSourceName();
- this.className = cfr.getName(); // slashes...
- this.modifiers = cfr.getModifiers();
- this.genericSignature = cfr.getGenericSignature();
-// if (this.genericSignature.length == 0) {
-// this.genericSignature = null;
-// }
- this.superclassName = cfr.getSuperclassName(); // slashes...
- interfaces = cfr.getInterfaceNames();
-
- }
-
- public char[] getEnclosingTypeName() {
- return enclosingTypeName;
- }
-
- public int getModifiers() {
- return modifiers;
- }
-
- public char[] getGenericSignature() {
- return genericSignature;
- }
-
- public char[][] getInterfaceNames() {
- return interfaces;
- }
-
- public boolean isAnonymous() {
- return isAnonymous;
- }
-
- public char[] sourceFileName() {
- return sourceFileName;
- }
-
- public boolean isLocal() {
- return isLocal;
- }
-
- public boolean isMember() {
- return isMember;
- }
-
- public char[] getSuperclassName() {
- return superclassName;
- }
-
- public char[] getFileName() {
- return fileName;
- }
-
- public char[] getName() {
- return className;
- }
-
- public long getTagBits() {
- return tagBits;
- }
-
- public boolean isBinaryType() {
- return isBinaryType;
- }
-
- public IBinaryField[] getFields() {
- return binFields;
- }
-
- public IBinaryMethod[] getMethods() {
- return binMethods;
- }
-
- public IBinaryNestedType[] getMemberTypes() {
- return memberTypes;
- }
-
- public IBinaryAnnotation[] getAnnotations() {
- return annotations;
- }
-
- public char[] getSourceName() {
- return sourceName;
- }
-
+ static char[][] NoInterface = CharOperation.NO_CHAR_CHAR;
+ static IBinaryNestedType[] NoNestedType = new IBinaryNestedType[0];
+ static IBinaryField[] NoField = new IBinaryField[0];
+ static IBinaryMethod[] NoMethod = new IBinaryMethod[0];
+
+ // this is the core state for comparison
+ char[] className;
+ int modifiers;
+ char[] genericSignature;
+ char[] superclassName;
+ char[][] interfaces;
+
+ // this is the extra state that enables us to be an IBinaryType
+ char[] enclosingTypeName;
+ boolean isLocal, isAnonymous, isMember;
+ char[] sourceFileName;
+ char[] fileName;
+ char[] sourceName;
+ long tagBits;
+ boolean isBinaryType;
+ IBinaryField[] binFields;
+ IBinaryMethod[] binMethods;
+ IBinaryNestedType[] memberTypes;
+ IBinaryAnnotation[] annotations;
+
+ public CompactTypeStructureRepresentation(ClassFileReader cfr) {
+
+ this.enclosingTypeName = cfr.getEnclosingTypeName();
+ this.isLocal = cfr.isLocal();
+ this.isAnonymous = cfr.isAnonymous();
+ this.isMember = cfr.isMember();
+ this.sourceFileName = cfr.sourceFileName();
+ this.fileName = cfr.getFileName();
+ this.tagBits = cfr.getTagBits();
+ this.isBinaryType = cfr.isBinaryType();
+ this.binFields = cfr.getFields();
+ if (binFields == null) {
+ binFields = NoField;
+ }
+ this.binMethods = cfr.getMethods();
+ if (binMethods == null) {
+ binMethods = NoMethod;
+ }
+ this.memberTypes = cfr.getMemberTypes();
+ this.annotations = cfr.getAnnotations();
+ this.sourceName = cfr.getSourceName();
+ this.className = cfr.getName(); // slashes...
+ this.modifiers = cfr.getModifiers();
+ this.genericSignature = cfr.getGenericSignature();
+ // if (this.genericSignature.length == 0) {
+ // this.genericSignature = null;
+ // }
+ this.superclassName = cfr.getSuperclassName(); // slashes...
+ interfaces = cfr.getInterfaceNames();
+
+ }
+
+ public char[] getEnclosingTypeName() {
+ return enclosingTypeName;
+ }
+
+ public int getModifiers() {
+ return modifiers;
+ }
+
+ public char[] getGenericSignature() {
+ return genericSignature;
+ }
+
+ public char[][] getInterfaceNames() {
+ return interfaces;
+ }
+
+ public boolean isAnonymous() {
+ return isAnonymous;
+ }
+
+ public char[] sourceFileName() {
+ return sourceFileName;
+ }
+
+ public boolean isLocal() {
+ return isLocal;
+ }
+
+ public boolean isMember() {
+ return isMember;
+ }
+
+ public char[] getSuperclassName() {
+ return superclassName;
+ }
+
+ public char[] getFileName() {
+ return fileName;
+ }
+
+ public char[] getName() {
+ return className;
+ }
+
+ public long getTagBits() {
+ return tagBits;
+ }
+
+ public boolean isBinaryType() {
+ return isBinaryType;
+ }
+
+ public IBinaryField[] getFields() {
+ return binFields;
+ }
+
+ public IBinaryMethod[] getMethods() {
+ return binMethods;
+ }
+
+ public IBinaryNestedType[] getMemberTypes() {
+ return memberTypes;
+ }
+
+ public IBinaryAnnotation[] getAnnotations() {
+ return annotations;
+ }
+
+ public char[] getSourceName() {
+ return sourceName;
+ }
} \ No newline at end of file