org.jetbrains.k2js.translate.reference
Class PropertyAccessTranslator
java.lang.Object
org.jetbrains.k2js.translate.general.AbstractTranslator
org.jetbrains.k2js.translate.reference.PropertyAccessTranslator
- All Implemented Interfaces:
- AccessTranslator
- Direct Known Subclasses:
- KotlinPropertyAccessTranslator, NativePropertyAccessTranslator
public abstract class PropertyAccessTranslator
- extends AbstractTranslator
- implements AccessTranslator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyAccessTranslator
protected PropertyAccessTranslator(@NotNull
TranslationContext context)
newInstance
@NotNull
public static PropertyAccessTranslator newInstance(@NotNull
JetSimpleNameExpression expression,
@Nullable
com.google.dart.compiler.backend.js.ast.JsExpression qualifier,
@NotNull
CallType callType,
@NotNull
TranslationContext context)
translateAsPropertyGetterCall
@NotNull
public static com.google.dart.compiler.backend.js.ast.JsExpression translateAsPropertyGetterCall(@NotNull
JetSimpleNameExpression expression,
@Nullable
com.google.dart.compiler.backend.js.ast.JsExpression qualifier,
@NotNull
CallType callType,
@NotNull
TranslationContext context)
canBePropertyGetterCall
public static boolean canBePropertyGetterCall(@NotNull
JetExpression expression,
@NotNull
TranslationContext context)
canBePropertyAccess
public static boolean canBePropertyAccess(@NotNull
JetExpression expression,
@NotNull
TranslationContext context)
setCallType
public void setCallType(@NotNull
CallType callType)
getCallType
@NotNull
protected CallType getCallType()
translateAsGet
@NotNull
protected abstract com.google.dart.compiler.backend.js.ast.JsExpression translateAsGet(@Nullable
com.google.dart.compiler.backend.js.ast.JsExpression receiver)
translateAsSet
@NotNull
protected abstract com.google.dart.compiler.backend.js.ast.JsExpression translateAsSet(@Nullable
com.google.dart.compiler.backend.js.ast.JsExpression receiver,
@NotNull
com.google.dart.compiler.backend.js.ast.JsExpression setTo)