org.jetbrains.jet.lang.descriptors
Class ScriptDescriptor

java.lang.Object
  extended by org.jetbrains.jet.lang.descriptors.annotations.AnnotatedImpl
      extended by org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorImpl
          extended by org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorNonRootImpl
              extended by org.jetbrains.jet.lang.descriptors.ScriptDescriptor
All Implemented Interfaces:
Annotated, DeclarationDescriptor, DeclarationDescriptorNonRoot, Named

public class ScriptDescriptor
extends DeclarationDescriptorNonRootImpl


Field Summary
static java.lang.String LAST_EXPRESSION_VALUE_FIELD_NAME
           
 
Constructor Summary
ScriptDescriptor(DeclarationDescriptor containingDeclaration, int priority, JetScope scriptScope, Name className)
           
 
Method Summary
<R,D> R
accept(DeclarationDescriptorVisitor<R,D> visitor, D data)
           
 ClassDescriptor getClassDescriptor()
           
 int getPriority()
           
 JetType getReturnType()
           
 ScriptCodeDescriptor getScriptCodeDescriptor()
           
 ReceiverParameterDescriptor getThisAsReceiverParameter()
           
 java.util.List<ValueParameterDescriptor> getValueParameters()
           
 void initialize(JetType returnType, java.util.List<? extends PropertyDescriptorImpl> properties, java.util.List<? extends FunctionDescriptor> functions)
           
static void initializeWithDefaultGetterSetter(PropertyDescriptorImpl propertyDescriptor)
           
 void setValueParameters(java.util.List<ValueParameterDescriptor> valueParameters)
           
 DeclarationDescriptor substitute(TypeSubstitutor substitutor)
           
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorNonRootImpl
getContainingDeclaration
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorImpl
acceptVoid, getName, getOriginal, toString
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.annotations.AnnotatedImpl
getAnnotations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.DeclarationDescriptor
acceptVoid, getOriginal
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.annotations.Annotated
getAnnotations
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.Named
getName
 

Field Detail

LAST_EXPRESSION_VALUE_FIELD_NAME

public static final java.lang.String LAST_EXPRESSION_VALUE_FIELD_NAME
See Also:
Constant Field Values
Constructor Detail

ScriptDescriptor

public ScriptDescriptor(@NotNull
                        DeclarationDescriptor containingDeclaration,
                        int priority,
                        @NotNull
                        JetScope scriptScope,
                        @NotNull
                        Name className)
Method Detail

initialize

public void initialize(@NotNull
                       JetType returnType,
                       @NotNull
                       java.util.List<? extends PropertyDescriptorImpl> properties,
                       @NotNull
                       java.util.List<? extends FunctionDescriptor> functions)

initializeWithDefaultGetterSetter

public static void initializeWithDefaultGetterSetter(PropertyDescriptorImpl propertyDescriptor)

getPriority

public int getPriority()

getReturnType

@NotNull
public JetType getReturnType()

getValueParameters

@NotNull
public java.util.List<ValueParameterDescriptor> getValueParameters()

getScriptCodeDescriptor

@NotNull
public ScriptCodeDescriptor getScriptCodeDescriptor()

getThisAsReceiverParameter

@NotNull
public ReceiverParameterDescriptor getThisAsReceiverParameter()

substitute

public DeclarationDescriptor substitute(@NotNull
                                        TypeSubstitutor substitutor)

accept

public <R,D> R accept(DeclarationDescriptorVisitor<R,D> visitor,
                      D data)

setValueParameters

public void setValueParameters(@NotNull
                               java.util.List<ValueParameterDescriptor> valueParameters)

getClassDescriptor

@NotNull
public ClassDescriptor getClassDescriptor()