Package spoon.support.compiler.jdt
Class JDTTreeBuilderHelper
java.lang.Object
spoon.support.compiler.jdt.JDTTreeBuilderHelper
-
Method Summary
Modifier and TypeMethodDescription<T> CtFieldAccess<T>
createFieldAccess(CtVariableReference<T> variableReference, CtExpression<?> target, boolean isReadAccess)
Creates variable access from aCtVariableReference
.<T> CtVariableAccess<T>
createVariableAccess(CtVariableReference<T> variableReference, boolean isReadAccess)
Creates variable access from aCtVariableReference
.
-
Method Details
-
createVariableAccess
public <T> CtVariableAccess<T> createVariableAccess(CtVariableReference<T> variableReference, boolean isReadAccess)Creates variable access from aCtVariableReference
. Think to move this method in theCodeFactory
if you think that is a good idea. -
createFieldAccess
public <T> CtFieldAccess<T> createFieldAccess(CtVariableReference<T> variableReference, CtExpression<?> target, boolean isReadAccess)Creates variable access from aCtVariableReference
. Think to move this method in theCodeFactory
if you think that is a good idea.
-