input
stringlengths
10
828
output
stringlengths
5
107
public void send string name otp erlang object msg home deliver new otp msg self name otp erlang object msg clone
send a message to a named mailbox created from the same node as
public void send string name string node otp erlang object msg try string current node home node if node equals current node send name msg else if node index of 0 0 node equals current node substring 0 current node index of 0 send name msg else other node otp cooked connection conn home get connection node if conn null return conn send self name msg catch exception e
send a message to a named mailbox created from another node
public void write le long n int b for int i 0 i b i write byte n 0xff n 8
write any number of bytes in little endian format
public void exit otp erlang object reason home close mbox this reason
close this mailbox with the given reason
public otp mbox create mbox return mboxes create
create an unnamed
public void exit string reason exit new otp erlang atom reason
equivalent to code exit new otp erlang atom reason code
public void close mbox otp mbox mbox close mbox mbox new otp erlang atom normal
close the specified mailbox with reason normal
public void write4 le long n write byte n 0xff write byte n 0xff00 8 write byte n 0xff0000 16 write byte n 0xff000000 24
write the low four bytes of a value to the stream in little
public void close mbox otp mbox mbox otp erlang object reason if mbox null mboxes remove mbox mbox name null mbox break links reason
close the specified mailbox with the given reason
public void write8 le long n write byte n 0xff write byte n 8 0xff write byte n 16 0xff write byte n 24 0xff write byte n 32 0xff write byte n 40 0xff write byte n 48 0xff write byte n 56 0xff
write the low eight bytes of a value to the stream in little
public void exit otp erlang pid to string reason exit to new otp erlang atom reason
p equivalent to code exit to new
public otp mbox create mbox string name return mboxes create name
create an named mailbox that can be used to send and receive
public string alive return alive
get the alivename part of the hostname
public string cookie return cookie
get the authorization cookie used by this node
public string set cookie string cookie string prev this cookie this cookie cookie return prev
set the authorization cookie used by this node
public int set trace level int level int old level trace level pin the value if level 0 level 0 else if level 4 level 4 trace level level return old level
p set the trace level for this connection
public boolean register name string name otp mbox mbox return mboxes register name mbox
p register or remove a name for the given mailbox
public int id return ids 0
get the id number from the ref
public boolean is new ref return ids length 1
determine whether this is a new style ref
public void write atom string atom this write1 otp external atom tag this write2 be atom length this write n atom get bytes
write a string to the stream as an erlang atom
public string to string string s ref node for int i 0 i ids length i s ids i s return s
get the string representation of the ref
public void encode otp output stream buf buf write ref node ids creation
convert this ref to the equivalent erlang external representation
public boolean equals object o if o instanceof otp erlang ref return false otp erlang ref ref otp erlang ref o if this node equals ref node this creation ref creation return false if this is new ref ref is new ref return this ids 0 ref ids 0 this ids 1 ref ids 1 this ids 2 ref ids 2 return this ids 0 ref ids 0
determine if two refs are equal
public void write binary byte bin this write1 otp external bin tag this write4 be bin length this write n bin
write an array of bytes to the stream as an erlang binary
public void unlink otp erlang pid to links remove link self to try string node to node if node equals home node home deliver new otp msg otp msg unlink tag self to else otp cooked connection conn home get connection node if conn null conn unlink self to catch exception e
p remove a link to a remote mailbox or erlang process
public int get pos return super pos
get the current position in the stream
public void write boolean boolean b this write atom string value of b
write a boolean value to the stream as the erlang atom true or
public void close done true connected false synchronized this try if socket null if trace level ctrl threshold system out println close socket close catch ioexception e ignore socket close errors finally socket null
close the connection to the remote node
public boolean ping string node long timeout return home ping node timeout
p create a connection to a remote node
public int set pos int pos int oldpos super pos if pos super count pos super count else if pos 0 pos 0 super pos pos return oldpos
set the current position in the stream
public void write byte byte b this write long long b 0xff l true
write a single byte to the stream as an erlang integer
public void write char char c this write long long c 0xffff l true
write a character to the stream as an erlang integer
public void close home close mbox this
close this mailbox
public void write float float f this write double f
write a float value to the stream
public void write long long l this write long l false
write a long to the stream
public boolean equals object o if o instanceof otp mbox return false otp mbox m otp mbox o return m self equals this self
determine if two mailboxes are equal
public void write ulong long ul this write long ul true
write a positive long to the stream
public void write int int i this write long i false
write an integer to the stream
public void write uint int ui this write long long ui 0x ffffffff l true
write a positive integer to the stream
public void write short short s this write long s false
write a short to the stream
public void write ushort short us this write long long us 0xffff l true
write a positive short to the stream
public void write list head int arity if arity 0 this write nil else this write1 otp external list tag this write4 be arity
write an erlang list header to the stream
public void write nil this write1 otp external nil tag
write an empty erlang list to the stream
public void write tuple head int arity if arity 0xff this write1 otp external small tuple tag this write1 arity else this write1 otp external large tuple tag this write4 be arity
write an erlang tuple header to the stream
public void write pid string node int id int serial int creation this write1 otp external pid tag this write atom node this write4 be id 0x7fff 15 bits this write4 be serial 0x1fff 13 bits this write1 creation 0x3 2 bits
write an erlang pid to the stream
public void write port string node int id int creation this write1 otp external port tag this write atom node this write4 be id 0xfffffff 28 bits this write1 creation 0x3 2 bits
write an erlang port to the stream
public void write ref string node int id int creation this write1 otp external ref tag this write atom node this write4 be id 0x3ffff 18 bits this write1 creation 0x3 2 bits
write an old style erlang ref to the stream
public string get short description return description
returns the tooltip text for this annotation
public void write any otp erlang object o calls one of the above functions depending on o o encode this
write an arbitrary erlang term to the stream
public editable properties get properties final string path properties are the same in both j2seproject 1 and j2seproject 2 return project manager mutex read access new mutex action editable properties public editable properties run if is current rake project helper project properties path equals path only project properties were changed return get updated project properties else return helper get properties path
returns the rake project helper
public rake project helper get rake project helper return this helper
returns an rake project helper
public boolean request save throws ioexception if is current return true if can update return false save update return true
request an saving of update
private void reset cache synchronized this resources cache null support fire property change prop resources null null
resets the cache and fires property change
public int get sharability final file file return project manager mutex read access new mutex action integer public integer run synchronized ruby sharability query this if delegate null delegate create delegate return delegate get sharability file
check whether a file or directory should be shared
public class path get project sources class path string type if class path boot equals type return get boot class path if class path source equals type return get sourcepath 0 if class path compile equals type return get compile time classpath 0 assert false return null
returns the given type of the classpath for the project sources
private image compute icon boolean opened int type icon icon g get icon opened if icon null image image opened super get opened icon type super get icon type return utilities merge images image package root node package badge 7 7 else return utilities icon2 image icon
copied from package root node with modifications
public main class warning string message file object sources roots this sources roots sources roots this message message init components add main class chooser
creates new form libraries chooser
public string get selected main class return main class chooser j panel1 get selected main class
returns the selected main class
public main class chooser file object sources roots this sources roots null
creates new form main class chooser
public string get selected main class if is valid main class name j main class list get selected value return string j main class list get selected value else return null
returns the selected main class
public file object get project directory return helper get project directory
returns the project directory
public lookup lookup return lookup
lookup providing mime type sensitive or global level data
public void add listener file change support listener listener file path assert path equals file util normalize file path need to normalize path before passing to fcs map file holder f2 h holders get listener if f2 h null f2 h new hash map file holder holders put listener f2 h if f2 h contains key path throw new illegal argument exception already listening to path noi18 n f2 h put path new holder listener path
add a listener to changes in a given path
public void remove listener file change support listener listener file path assert path equals file util normalize file path need to normalize path before passing to fcs map file holder f2 h holders get listener if f2 h null throw new illegal argument exception was not listening to path noi18 n if f2 h contains key path throw new illegal argument exception was not listening to path noi18 n f2 h remove path
remove a listener to changes in a given path
public rake project helper get helper return rake project helper get source
get the associated ant project helper object
public boolean is expected return expected
check whether the change was produced by calling methods on
public void add principal source root string location string display name icon icon icon opened icon throws illegal state exception if last registered roots null throw new illegal state exception register external roots was already called noi18 n principal source roots add new source root location display name icon opened icon
add a possible principal source root or top level folder which may
public editable properties get properties string path editable properties ep get pp path get editable properties or null if ep null return ep clone properties else return new editable properties true
get properties from a given path
public boolean put properties string path editable properties props return get pp path put props
store properties in memory
public file lock write string path throws ioexception assert properties contains key path return get pp path write
write cached properties to disk
public void add typed source root string location string type string display name icon icon icon opened icon throws illegal state exception if last registered roots null throw new illegal state exception register external roots was already called noi18 n typed source roots add new typed source root type location display name icon opened icon
add a typed source root which will be considered only in certain contexts
public property provider get property provider string path return get pp path
make a property provider that loads from this file
private element load references assert project manager mutex is read access project manager mutex is write access element references aux get configuration fragment refs name refs ns2 true if references null references aux get configuration fragment refs name refs ns true return references
load references from project
public void register external roots int algorithm throws illegal argument exception illegal state exception if last registered roots null throw new illegal state exception register external roots was already called before noi18 n registered root algorithm algorithm remark external roots
register all external source or non source roots using
private void store references element references assert project manager mutex is write access assert references null references get local name equals refs name refs ns equals references get namespace uri refs ns2 equals references get namespace uri aux put configuration fragment references true
store references to project
private void compute files string include paths compute from includes string exclude paths compute from excludes synchronized this include paths include paths exclude paths exclude paths
compute the absolute paths which are and are not sharable
public sources create sources return new sources impl
create a source list object
public void store output stream stream throws ioexception boolean previous line was empty true buffered writer output new buffered writer new output stream writer stream iso 8859 1 for item item items if item is separate previous line was empty output new line string line null iterator string it item get raw data iterator while it has next line it next output write line output new line if line null previous line was empty is empty line output flush
store properties to a stream
public string get property string key return get key
convenience method to get a property as a string
public string set property string key string value return put key value
convenience method to set a property
public string set property string key string value string result get key if key null value null throw new null pointer exception list string value list arrays as list value item item item index get key if item null item set value value list else add item new item key value list alphabetize return result
sets a property to a value broken into segments for readability
public void set comment string key string comment boolean separate xxx check validity of comment parameter item item item index get key if item null throw new illegal argument exception cannot set comment for non existing property key item set comment comment separate
create comment for the property
public string get id return get target name
returns identifier of the rake artifact which must be strong unique within
public project get project return file owner query get owner get script location to uri
find the project associated with this script if any
public string add reference final rake artifact artifact uri location throws illegal argument exception object ret add reference0 artifact location return string ret 1
add a reference to an artifacts location coming from a foreign project
public boolean refresh build script final string path final url stylesheet final boolean check for project xml modified throws ioexception illegal state exception try return project manager mutex write access new mutex exception action boolean public boolean run throws ioexception int flags get build script state path stylesheet if should generate build script flags check for project xml modified generate build script from stylesheet path stylesheet return true else return false catch mutex exception e throw ioexception e get exception
convenience method to refresh a build script if it can and should be
public editable properties clone properties return new editable properties this
create an exact copy of this properties object
private element get configuration data root boolean shared assert project manager mutex is read access project manager mutex is write access assert thread holds lock modified metadata paths document doc get configuration xml shared if shared element project doc get document element element config util find element project configuration project ns noi18 n assert config null return config else return doc get document element
get the code lt configuration gt code element of project
public void load final reader reader throws ioexception buffered reader breader new buffered reader reader list lines new array list string line while line breader read line null lines add line for iterator i lines iterator i has next add to history string i next
load the history buffer from the specified reader
public void add rake project listener rake project listener listener synchronized listeners listeners add listener
add a listener to changes in the project configuration
public void flush buffer throws ioexception if get output null for iterator i history iterator i has next get output println string i next get output flush
flush the entire history buffer to the output print writer
public string current if current index history size return return string history get current index
return the content of the current buffer
public list get history list return collections unmodifiable list history
returns an immutable list of the history buffer
public void remove rake project listener rake project listener listener synchronized listeners listeners remove listener
remove a listener to changes in the project configuration
public boolean add raw reference final raw reference ref return project manager mutex write access new mutex action boolean public boolean run try return add raw reference0 ref catch illegal argument exception e error manager get default notify error manager informational e return false
add a raw reference to a foreign project artifact
private void modifying string path assert project manager mutex is write access state mark modified synchronized modified metadata paths modified metadata paths add path fire change path true
call when explicitly modifying some piece of metadata
public file object get project directory return dir
get the top level project directory
private token get first token on line base document doc int offset throws bad location exception int line begin utilities get row first non white doc offset if line begin 1 return lex utilities get token doc line begin return null
get the first token on the given line
public void notify deleted state notify deleted
notification that this project has been deleted
private boolean is last reference string ref object ret find artifact and location ref if ret 0 null ret 1 null return true rake artifact aa rake artifact ret 0 uri uri uri ret 1 uri uris aa get artifact locations boolean last reference true are there any other referenced jars or not for int i 0 i uris length i if uris i equals uri continue if is referenced aa uris i last reference false break return last reference
checks whether this is last reference and therefore the artifact can