| java.lang.Object com.sun.tools.javac.jvm.Items
Items | public class Items (Code) | | A helper class for code generation. Items are objects
that stand for addressable entities in the bytecode. Each item
supports a fixed protocol for loading the item on the stack, storing
into it, converting it into a jump condition, and several others.
There are many individual forms of items, such as local, static,
indexed, or instance variables, values on the top of stack, the
special values this or super, etc. Individual items are represented as
inner classes in class Items.
This is NOT part of any API supported by Sun Microsystems. If
you write code that depends on this, you do so at your own risk.
This code and its internal interfaces are subject to change or
deletion without notice.
|
Inner Class :abstract class Item | |
Inner Class :class StackItem extends Item | |
Inner Class :class IndexedItem extends Item | |
Inner Class :class SelfItem extends Item | |
Inner Class :class LocalItem extends Item | |
Inner Class :class StaticItem extends Item | |
Inner Class :class MemberItem extends Item | |
Inner Class :class ImmediateItem extends Item | |
Inner Class :class AssignItem extends Item | |
Inner Class :class CondItem extends Item | |
Method Summary | |
Item | makeAssignItem(Item lhs) Make an item representing an assignment expression. | CondItem | makeCondItem(int opcode, Chain trueJumps, Chain falseJumps) Make an item representing a conditional or unconditional jump. | CondItem | makeCondItem(int opcode) Make an item representing a conditional or unconditional jump. | Item | makeImmediateItem(Type type, Object value) Make an item representing a literal. | Item | makeIndexedItem(Type type) Make an item representing an indexed expression. | LocalItem | makeLocalItem(VarSymbol v) Make an item representing a local variable. | Item | makeMemberItem(Symbol member, boolean nonvirtual) Make an item representing an instance variable or method. | Item | makeStackItem(Type type) Make an item representing a value on stack. | Item | makeStaticItem(Symbol member) Make an item representing a static variable or method. | Item | makeSuperItem() Make an item representing `super'. | Item | makeThisItem() Make an item representing `this'. | Item | makeVoidItem() |
makeAssignItem | Item makeAssignItem(Item lhs)(Code) | | Make an item representing an assignment expression.
Parameters: lhs - The item representing the assignment's left hand side. |
makeCondItem | CondItem makeCondItem(int opcode, Chain trueJumps, Chain falseJumps)(Code) | | Make an item representing a conditional or unconditional jump.
Parameters: opcode - The jump's opcode. Parameters: trueJumps - A chain encomassing all jumps that can be takenif the condition evaluates to true. Parameters: falseJumps - A chain encomassing all jumps that can be takenif the condition evaluates to false. |
makeCondItem | CondItem makeCondItem(int opcode)(Code) | | Make an item representing a conditional or unconditional jump.
Parameters: opcode - The jump's opcode. |
makeImmediateItem | Item makeImmediateItem(Type type, Object value)(Code) | | Make an item representing a literal.
Parameters: type - The literal's type. Parameters: value - The literal's value. |
makeIndexedItem | Item makeIndexedItem(Type type)(Code) | | Make an item representing an indexed expression.
Parameters: type - The expression's type. |
makeLocalItem | LocalItem makeLocalItem(VarSymbol v)(Code) | | Make an item representing a local variable.
Parameters: v - The represented variable. |
makeMemberItem | Item makeMemberItem(Symbol member, boolean nonvirtual)(Code) | | Make an item representing an instance variable or method.
Parameters: member - The represented symbol. Parameters: nonvirtual - Is the reference not virtual? (true for constructorsand private members). |
makeStackItem | Item makeStackItem(Type type)(Code) | | Make an item representing a value on stack.
Parameters: type - The value's type. |
makeStaticItem | Item makeStaticItem(Symbol member)(Code) | | Make an item representing a static variable or method.
Parameters: member - The represented symbol. |
makeSuperItem | Item makeSuperItem()(Code) | | Make an item representing `super'.
|
makeThisItem | Item makeThisItem()(Code) | | Make an item representing `this'.
|
makeVoidItem | Item makeVoidItem()(Code) | | Make a void item
|
|
|