-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
219 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
src/main/java/org/fife/rsta/ac/java/classreader/constantpool/ConstantInvokeDynamicInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* 03/21/2010 | ||
* | ||
* Copyright (C) 2010 Robert Futrell | ||
* robert_futrell at users.sourceforge.net | ||
* http://fifesoft.com/rsyntaxtextarea | ||
* | ||
* This library is distributed under a modified BSD license. See the included | ||
* RSTALanguageSupport.License.txt file for details. | ||
*/ | ||
package org.fife.rsta.ac.java.classreader.constantpool; | ||
|
||
/** | ||
* Class representing a <code>CONSTANT_InvokeDynamic_info</code> structure. | ||
* | ||
* @author Robert Futrell | ||
* @version 1.0 | ||
*/ | ||
public class ConstantInvokeDynamicInfo extends ConstantPoolInfo { | ||
|
||
private int bootstrapMethodAttrIndex; | ||
|
||
private int nameAndTypeIndex; | ||
|
||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param bootstrapMethodAttrIndex | ||
* @param nameAndTypeIndex | ||
*/ | ||
public ConstantInvokeDynamicInfo(int bootstrapMethodAttrIndex, int nameAndTypeIndex) { | ||
super(CONSTANT_InvokeDynamic); | ||
this.bootstrapMethodAttrIndex = bootstrapMethodAttrIndex; | ||
this.nameAndTypeIndex = nameAndTypeIndex; | ||
} | ||
|
||
|
||
public int getBootstrapMethodAttrIndex() { | ||
return bootstrapMethodAttrIndex; | ||
} | ||
|
||
|
||
public int getNameAndTypeIndex() { | ||
return nameAndTypeIndex; | ||
} | ||
|
||
|
||
/** | ||
* Returns a string representation of this object. Useful for debugging. | ||
* | ||
* @return A string representation of this object. | ||
*/ | ||
@Override | ||
public String toString() { | ||
return "[ConstantInvokeDynamicInfo: " + | ||
"bootstrapMethodAttrIndex=" + getBootstrapMethodAttrIndex() + | ||
"; nameAndTypeIndex=" + getNameAndTypeIndex() + | ||
"]"; | ||
} | ||
|
||
|
||
} |
62 changes: 62 additions & 0 deletions
62
src/main/java/org/fife/rsta/ac/java/classreader/constantpool/ConstantMethodHandleInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* 03/21/2010 | ||
* | ||
* Copyright (C) 2010 Robert Futrell | ||
* robert_futrell at users.sourceforge.net | ||
* http://fifesoft.com/rsyntaxtextarea | ||
* | ||
* This library is distributed under a modified BSD license. See the included | ||
* RSTALanguageSupport.License.txt file for details. | ||
*/ | ||
package org.fife.rsta.ac.java.classreader.constantpool; | ||
|
||
/** | ||
* Class representing a <code>CONSTANT_MethodHandle</code> structure. | ||
* | ||
* @author Robert Futrell | ||
* @version 1.0 | ||
*/ | ||
public class ConstantMethodHandleInfo extends ConstantPoolInfo { | ||
|
||
private int referenceKind; | ||
|
||
private int referenceIndex; | ||
|
||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param referenceKind | ||
* @param referenceIndex | ||
*/ | ||
public ConstantMethodHandleInfo(int referenceKind, int referenceIndex) { | ||
super(CONSTANT_MethodHandle); | ||
this.referenceKind = referenceKind; | ||
this.referenceIndex = referenceIndex; | ||
} | ||
|
||
|
||
public int getReferenceKind() { | ||
return referenceKind; | ||
} | ||
|
||
public int getReferenceIndex() { | ||
return referenceIndex; | ||
} | ||
|
||
|
||
/** | ||
* Returns a string representation of this object. Useful for debugging. | ||
* | ||
* @return A string representation of this object. | ||
*/ | ||
@Override | ||
public String toString() { | ||
return "[ConstantMethodHandleInfo: " + | ||
"referenceKind=" + getReferenceKind() + | ||
"; referenceIndex=" + getReferenceIndex() + | ||
"]"; | ||
} | ||
|
||
|
||
} |
52 changes: 52 additions & 0 deletions
52
src/main/java/org/fife/rsta/ac/java/classreader/constantpool/ConstantMethodTypeInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* 03/21/2010 | ||
* | ||
* Copyright (C) 2010 Robert Futrell | ||
* robert_futrell at users.sourceforge.net | ||
* http://fifesoft.com/rsyntaxtextarea | ||
* | ||
* This library is distributed under a modified BSD license. See the included | ||
* RSTALanguageSupport.License.txt file for details. | ||
*/ | ||
package org.fife.rsta.ac.java.classreader.constantpool; | ||
|
||
/** | ||
* Class representing a <code>CONSTANT_MethodType</code> structure. | ||
* | ||
* @author Robert Futrell | ||
* @version 1.0 | ||
*/ | ||
public class ConstantMethodTypeInfo extends ConstantPoolInfo { | ||
|
||
private int descriptorIndex; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param descriptorIndex | ||
*/ | ||
public ConstantMethodTypeInfo(int descriptorIndex) { | ||
super(CONSTANT_MethodType); | ||
this.descriptorIndex = descriptorIndex; | ||
} | ||
|
||
|
||
public int getDescriptorIndex() { | ||
return descriptorIndex; | ||
} | ||
|
||
|
||
/** | ||
* Returns a string representation of this object. Useful for debugging. | ||
* | ||
* @return A string representation of this object. | ||
*/ | ||
@Override | ||
public String toString() { | ||
return "[ConstantMethodTypeInfo: " + | ||
"bootstrapMethodAttrIndex=" + getDescriptorIndex() + | ||
"]"; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters