diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-03-11 07:58:41 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-03-16 08:18:15 +0700 |
commit | 8348a8f6536971b8c1261923f5a5670c97bf1dcb (patch) | |
tree | e08d0a269dcbdc80a24e56f86bbf109071425cbb /org.aspectj.ajdt.core | |
parent | 32b2585c55ba8dbc5e1ee5fa522e7074f76040fb (diff) | |
download | aspectj-8348a8f6536971b8c1261923f5a5670c97bf1dcb.tar.gz aspectj-8348a8f6536971b8c1261923f5a5670c97bf1dcb.zip |
Upgrade JDT Core to @3caefb80 (4.20 snapshot, date 2021-03-09)
Add methods isRecord() and getRecordComponents() to class
CompactTypeStructureRepresentation
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/CompactTypeStructureRepresentation.java | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/CompactTypeStructureRepresentation.java b/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/CompactTypeStructureRepresentation.java index 2e4001e07..b82b06d3a 100644 --- a/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/CompactTypeStructureRepresentation.java +++ b/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/CompactTypeStructureRepresentation.java @@ -19,6 +19,7 @@ import org.aspectj.org.eclipse.jdt.internal.compiler.env.IBinaryMethod; import org.aspectj.org.eclipse.jdt.internal.compiler.env.IBinaryNestedType; import org.aspectj.org.eclipse.jdt.internal.compiler.env.IBinaryType; import org.aspectj.org.eclipse.jdt.internal.compiler.env.IBinaryTypeAnnotation; +import org.aspectj.org.eclipse.jdt.internal.compiler.env.IRecordComponent; import org.aspectj.org.eclipse.jdt.internal.compiler.env.ITypeAnnotationWalker; import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.ExternalAnnotationStatus; import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment; @@ -48,7 +49,7 @@ public class CompactTypeStructureRepresentation implements IBinaryType { // this is the extra state that enables us to be an IBinaryType char[] enclosingTypeName; - boolean isLocal, isAnonymous, isMember; + boolean isLocal, isAnonymous, isMember, isRecord; char[] sourceFileName; char[] fileName; char[] sourceName; @@ -59,6 +60,7 @@ public class CompactTypeStructureRepresentation implements IBinaryType { IBinaryNestedType[] memberTypes; IBinaryAnnotation[] annotations; IBinaryTypeAnnotation[] typeAnnotations; + IRecordComponent[] recordComponents; public CompactTypeStructureRepresentation(ClassFileReader cfr, boolean isAspect) { @@ -97,6 +99,8 @@ public class CompactTypeStructureRepresentation implements IBinaryType { // } this.superclassName = cfr.getSuperclassName(); // slashes... interfaces = cfr.getInterfaceNames(); + isRecord = cfr.isRecord(); + recordComponents = cfr.getRecordComponents(); } @@ -136,6 +140,11 @@ public class CompactTypeStructureRepresentation implements IBinaryType { return isLocal; } + @Override + public boolean isRecord() { + return isRecord; + } + public boolean isMember() { return isMember; } @@ -164,6 +173,11 @@ public class CompactTypeStructureRepresentation implements IBinaryType { return binFields; } + @Override + public IRecordComponent[] getRecordComponents() { + return recordComponents; + } + public IBinaryMethod[] getMethods() { return binMethods; } @@ -199,4 +213,4 @@ public class CompactTypeStructureRepresentation implements IBinaryType { return ExternalAnnotationStatus.NOT_EEA_CONFIGURED; } -}
\ No newline at end of file +} |