public class

StringExpression

extends Expression
java.lang.Object
   ↳ sun.tools.tree.Node
     ↳ sun.tools.tree.Expression
       ↳ sun.tools.tree.StringExpression

Class Overview

WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.

Summary

[Expand]
Inherited Constants
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
[Expand]
Inherited Fields
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
Public Constructors
StringExpression(long where, String value)
Constructor
Public Methods
void codeValue(Environment env, Context ctx, Assembler asm)
Code
boolean equals(Object obj)
Equality
boolean equals(String s)
Object getValue()
Get the value
int hashCode()
Hashcode
boolean isConstant()
Return true if constant
boolean isNonNull()
Check if the expression cannot be a null reference.
void print(PrintStream out)
Print
[Expand]
Inherited Methods
From class sun.tools.tree.Expression
From class sun.tools.tree.Node
From class java.lang.Object

Public Constructors

public StringExpression (long where, String value)

Constructor

Public Methods

public void codeValue (Environment env, Context ctx, Assembler asm)

Code

public boolean equals (Object obj)

Equality

Parameters
obj the reference object with which to compare.
Returns
  • true if this object is the same as the obj argument; false otherwise.

public boolean equals (String s)

public Object getValue ()

Get the value

public int hashCode ()

Hashcode

Returns
  • a hash code value for this object.

public boolean isConstant ()

Return true if constant

public boolean isNonNull ()

Check if the expression cannot be a null reference.

public void print (PrintStream out)

Print