|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.editor.js.runtime.JSUndefined
public class JSUndefined
| Constructor Summary | |
|---|---|
JSUndefined()
|
|
| Method Summary | |
|---|---|
boolean |
canPut(java.lang.String propertyName)
Determines if the specified property name can be set. |
boolean |
containsOffset(int offset)
Determine if the specified offset is within this range |
boolean |
deletePropertyName(java.lang.String propertyName)
Remove the specified property name from this object. |
java.lang.String |
getClassName()
Returns the class name of this object. |
IDocumentation |
getDocumentation()
Retrieve any documentation associated with this object |
int |
getEndingOffset()
Get the ending offset for this range |
IObject |
getInstance(Environment environment,
int fileIndex,
int offset)
Return the unerlying primitive type |
int |
getLength()
Get the total length between the starting offset and the ending offset in this range |
Property |
getLocalProperty(java.lang.String propertyName)
Returns a local property defined on an object. |
int |
getLocalPropertyCount()
Returns the number of porperties defined locally to this object. |
java.lang.String[] |
getLocalPropertyNames()
Get all enumerable property names that exist on this object only (does not follow prototype chain) |
Property |
getProperty(java.lang.String propertyName)
Get the Property object for the associated property name |
java.lang.String[] |
getPropertyNames()
Get all enumerable property names on this object |
java.lang.String[] |
getPropertyNames(boolean getAll)
Get all property names on this object |
IObject |
getPropertyValue(java.lang.String propertyName,
int fileIndex,
int offset)
Returns the value of the name property. |
IObject |
getPrototype()
Returns the prototype of this object. |
static JSUndefined |
getSingletonInstance()
Return the JSNull singleton for this environment |
int |
getStartingOffset()
Get the starting offset for this range |
boolean |
hasDocumentation()
Determine if this object contains any documentation |
boolean |
hasLocalProperty(java.lang.String propertyName)
Determine if this object has the specified property name. |
boolean |
hasProperty(java.lang.String propertyName)
Determine if this object has the specified property name. |
boolean |
isEmpty()
Determine if this is a valid range |
void |
putLocalProperty(java.lang.String propertyName,
Property property)
Set the Property object with the associated name |
void |
putPropertyValue(java.lang.String propertyName,
IObject value,
int fileIndex)
Sets the value of the specified property name. |
void |
putPropertyValue(java.lang.String propertyName,
IObject value,
int fileIndex,
int attributes)
Create a property and set its attributes |
void |
setDocumentation(IDocumentation documentation)
Associate documentation with this object |
void |
setPrototype(IObject prototype)
Set this object's prototype ([[Prototype]]) |
void |
unputPropertyName(java.lang.String propertyName,
int fileIndex,
int offset)
Remove a reference to the specified property name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSUndefined()
| Method Detail |
|---|
public static JSUndefined getSingletonInstance()
public boolean canPut(java.lang.String propertyName)
IObject
canPut in interface IObjectpropertyName - The name of the property to test
IObject.canPut(java.lang.String)public Property getProperty(java.lang.String propertyName)
IObject
getProperty in interface IObjectpropertyName - The name of the Property to return
IObject.getProperty(java.lang.String)
public IObject getPropertyValue(java.lang.String propertyName,
int fileIndex,
int offset)
IObject
getPropertyValue in interface IObjectpropertyName - The name of the property to retrievefileIndex - The index of the file where this property is to be retrievedoffset - the offset within the file
IObject.getPropertyValue(java.lang.String, int, int)
public void putPropertyValue(java.lang.String propertyName,
IObject value,
int fileIndex)
IObject
putPropertyValue in interface IObjectpropertyName - The name of the property to setvalue - The value to associate with the given property namefileIndex - The index of the file where this property is to be setIObject.putPropertyValue(java.lang.String, com.aptana.ide.editor.js.runtime.IObject, int)
public void putPropertyValue(java.lang.String propertyName,
IObject value,
int fileIndex,
int attributes)
IObject
putPropertyValue in interface IObjectpropertyName - The property name to createvalue - The value of the propertyfileIndex - The index of the file where this property is to be setattributes - The attributes for the propertyIObject.putPropertyValue(java.lang.String, com.aptana.ide.editor.js.runtime.IObject, int, int)public java.lang.String[] getPropertyNames()
IObject
getPropertyNames in interface IObjectIObject.getPropertyNames()public java.lang.String[] getPropertyNames(boolean getAll)
IObject
getPropertyNames in interface IObjectgetAll - If true, then all properties, including properties with the DONT_ENUM attribute, will be returned
IObject.getPropertyNames(boolean)public boolean hasProperty(java.lang.String propertyName)
IObject
hasProperty in interface IObjectpropertyName - The name of the property to test
IObject.hasProperty(java.lang.String)public Property getLocalProperty(java.lang.String propertyName)
IObject
getLocalProperty in interface IObjectpropertyName - The name of the property to retrieve
IObject.getLocalProperty(java.lang.String)
public void putLocalProperty(java.lang.String propertyName,
Property property)
IObject
putLocalProperty in interface IObjectpropertyName - The name of the property to setproperty - The property instanceIObject.putLocalProperty(java.lang.String, com.aptana.ide.editor.js.runtime.Property)public java.lang.String[] getLocalPropertyNames()
IObject
getLocalPropertyNames in interface IObjectIObject.getLocalPropertyNames()public boolean hasLocalProperty(java.lang.String propertyName)
IObject
hasLocalProperty in interface IObjectpropertyName - The name of the property to test
IObject.hasLocalProperty(java.lang.String)
public void unputPropertyName(java.lang.String propertyName,
int fileIndex,
int offset)
IObject
unputPropertyName in interface IObjectpropertyName - The name of the property to unputfileIndex - The file index of the property to unputoffset - The file offsetIObject.unputPropertyName(java.lang.String, int, int)public boolean deletePropertyName(java.lang.String propertyName)
IObject
deletePropertyName in interface IObjectpropertyName - The property name to remove from this object
IObject.deletePropertyName(java.lang.String)public IObject getPrototype()
IObject
getPrototype in interface IObjectIObject.getPrototype()public void setPrototype(IObject prototype)
IObject
setPrototype in interface IObjectprototype - This object's new prototype objectIObject.setPrototype(com.aptana.ide.editor.js.runtime.IObject)public java.lang.String getClassName()
IObject
getClassName in interface IObjectIObject.getClassName()
public IObject getInstance(Environment environment,
int fileIndex,
int offset)
getInstance in interface IObjectenvironment - The environmentfileIndex - The file indexoffset - The file offset
public int getEndingOffset()
IRange
getEndingOffset in interface IRangeIRange.getEndingOffset()public int getLength()
IRange
getLength in interface IRangeIRange.getLength()public int getStartingOffset()
IRange
getStartingOffset in interface IRangeIRange.getStartingOffset()public boolean isEmpty()
IRange
isEmpty in interface IRangeIRange.isEmpty()public boolean containsOffset(int offset)
IRange
containsOffset in interface IRangeoffset - The offset to test
IRange.containsOffset(int)public IDocumentation getDocumentation()
IDocumentationContainer
getDocumentation in interface IDocumentationContainerIDocumentationContainer.getDocumentation()public boolean hasDocumentation()
IDocumentationContainer
hasDocumentation in interface IDocumentationContainerIDocumentationContainer.hasDocumentation()public void setDocumentation(IDocumentation documentation)
IDocumentationContainer
setDocumentation in interface IDocumentationContainerdocumentation - The new documentation for this objectIDocumentationContainer.setDocumentation(com.aptana.ide.metadata.IDocumentation)public int getLocalPropertyCount()
IObject
getLocalPropertyCount in interface IObjectIObject.getLocalPropertyCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||