Skip to content

Commit

Permalink
fix(role): CtTypeAccess.getAccessedType has CtRole.TYPE (#1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky authored and monperrus committed Oct 20, 2017
1 parent 3cf9d36 commit 800e279
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/spoon/reflect/code/CtTypeAccess.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@
*/
package spoon.reflect.code;

import spoon.reflect.annotations.PropertyGetter;
import spoon.reflect.annotations.PropertySetter;
import spoon.reflect.declaration.CtTypedElement;
import spoon.reflect.reference.CtTypeReference;
import spoon.support.DerivedProperty;
import spoon.support.UnsettableProperty;

import static spoon.reflect.path.CtRole.TYPE;

/**
* This code element represents a type reference usable as an expression.
* It is used in particular for static accesses, Java 8 method references, instanceof binary expressions and ".class".
Expand Down Expand Up @@ -55,6 +59,7 @@ public interface CtTypeAccess<A> extends CtExpression<Void> {
*
* @return CtTypeReference.
*/
@PropertyGetter(role = TYPE)
CtTypeReference<A> getAccessedType();

/**
Expand All @@ -63,6 +68,7 @@ public interface CtTypeAccess<A> extends CtExpression<Void> {
* @param accessedType
* CtTypeReference.
*/
@PropertySetter(role = TYPE)
<C extends CtTypeAccess<A>> C setAccessedType(CtTypeReference<A> accessedType);

/**
Expand Down

0 comments on commit 800e279

Please sign in to comment.